Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
8.0.0
-
None
-
NodeJS: v8.10.0
npm: 5.6.0
Cordova: 8.0.0
Description
I observed that Cordova changes the version of plugins in package.json. So if I set a static version for a plugin in package.json and add a platform (e.g. android), Cordova installs the correct version but updates the version of the plugin in package.json with a caret(^).
Example:
Before adding a platform the package.json looks like that
[...] "dependencies": { "cordova-plugin-ble-central": "1.1.9" } [...]
After adding a platform the package.json looks like that
[...] "dependencies": { "cordova-plugin-ble-central": "^1.1.9" } [...]
and the installed plugin has the version 1.1.9.
The next time after removing my plugins and platforms folder Cordova will install that plugin in version 1.2.1 because of the caret(^) in package.json.