Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ionic state restore modifies package.json #637

Closed
gaboesquivel opened this issue Nov 4, 2015 · 2 comments
Closed

ionic state restore modifies package.json #637

gaboesquivel opened this issue Nov 4, 2015 · 2 comments
Labels

Comments

@gaboesquivel
Copy link

As you can see here the ionic state restore command modifies package.json, in ionic 1.7.7

and it duplicates entries

diff --git a/mobile/package.json b/mobile/package.json
index 7da6eaf..ad39da3 100644
--- a/mobile/package.json
+++ b/mobile/package.json
@@ -57,9 +57,15 @@
   "cordovaPlugins": [
     "org.apache.cordova.device",
     "org.apache.cordova.console",
+    "com.ionic.keyboard",
+    "com.ionic.keyboard",
+    "org.apache.cordova.device",
+    "org.apache.cordova.console",
+    "org.apache.cordova.device",
+    "org.apache.cordova.console",
     "com.ionic.keyboard"
   ],
   "cordovaPlatforms": [
     "ios"
   ]
-}
+}
@becdetat
Copy link

becdetat commented Apr 1, 2016

I found that this was a bug in /hooks/after_plugin_add/register_plugins.jsso it's more likely a fixed issue in ionic-generator - diegonetto/generator-ionic@db42a4a

@jgw96
Copy link
Contributor

jgw96 commented May 2, 2016

Hello all! Thanks for opening an issue with us. We are currently in the process of deprecating the ionic state commands in favor of doing it the cordova way. https://cordova.apache.org/docs/en/latest/platform_plugin_versioning_ref/index.html You can keep up with the status of this on #904 . Thanks for using Ionic!

@jgw96 jgw96 closed this as completed May 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants