Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13532

Cordova fails to find platform/plugin versions in package.json devDependencies

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-lib
    • Labels:

      Description

      Cordova only looks at the dependencies section of package.json, and ignores anything specified in devDependencies. This results in the default pinned versions for platforms/plugins being used.

      Code in question: https://github.com/apache/cordova-lib/blob/da8ebf6cb81dd84c22e24fdf0baff9837a544b2d/src/cordova/platform/addHelper.js#L109-L113

      This is wrong because Cordova (and its related bits) is not a dependency of my application code, it is a build tool that belongs in devDependencies.

        Attachments

          Activity

            People

            • Assignee:
              auso Audrey So
              Reporter:
              dpogue Darryl Pogue
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: