You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: Check for platform version in both normal and dev dependencies within package.json file.
* fix: added unit test for package.json devDependencies (#866)
Co-authored-by: Aidanas Tamasauskas <aidana.tamasauskas@nutshellapps.co.uk>
Co-authored-by: Richard Li <li.richard.2013@gmail.com>
Bug Report
Problem
When dependencies and devDependencies are both present, running
cordova prepare
installs the wrong platform version.What is expected to happen?
Using cordova-fetch for cordova-electron@2.0.0
is printedWhat does actually happen?
Using cordova-fetch for cordova-electron@1.0.0
is printedInformation
Environment, Platform, Device
the relevant part of my package.json:
Solution
I managed to find the problem in this line:
https://github.com/apache/cordova-lib/blob/master/src/cordova/platform/addHelper.js#L102
If "dependencies" exists, the code skips the devDependencies.
Version information
cordova-lib@10.0.0
Checklist
The text was updated successfully, but these errors were encountered: