ionic-team / ionic-app-lib

The library used for using ionic apps - consumed by the CLI and the GUI
44 stars 79 forks source link

ionic state save doesn't preserve plugin branches #109

Open DustinTheDev opened 8 years ago

DustinTheDev commented 8 years ago

Running the ionic state save command doesn't preserve the branch/commit specified by a plugin (added the branch suffix manually).

For example if my package.json looks like this before running the ionic state save:

"cordovaPlugins": [
    "cordova-plugin-device",
    {
      "locator": "https://github.com/djonesdev/CordovaCameraPreview#djonesdev",
      "id": "cordova-plugin-camera-preview"
    }
  ],

The ionic state restore command correctly restores the selected branch (in this case djonesdev). However after running ionic state save it reverts to this:

"cordovaPlugins": [
    "cordova-plugin-device",
    {
      "locator": "https://github.com/djonesdev/CordovaCameraPreview",
      "id": "cordova-plugin-camera-preview"
    }
  ],