[ 
https://issues.apache.org/jira/browse/CB-13847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16354503#comment-16354503
 ] 

Dan Imhoff commented on CB-13847:
---------------------------------

I realize this is what npm without `{{npm config set save-exact true}}`. Just 
wondering if the Cordova team would be up for discussing solutions within the 
Cordova ecosystem. Perhaps `cordova platform add` could simply use the version 
spec from config.xml if platform@version is not used.

> `cordova platform add` overwrites existing version specs with caret ranges
> --------------------------------------------------------------------------
>
>                 Key: CB-13847
>                 URL: https://issues.apache.org/jira/browse/CB-13847
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: cordova@7.0.0, cordova@8.0.0
>         Environment: Tested on macOS, but the problem is likely 
> cross-platform.
>            Reporter: Dan Imhoff
>            Priority: Minor
>
> In a project without `platforms/` and `plugins/`, and an existing `<engine 
> name="foo" spec="...">` definition, `cordova platform add foo` ignores the 
> engine version spec and the plugin version specs as well, overwriting the 
> existing entry with a caret version range.
> Original issue: https://github.com/ionic-team/ionic-cli/issues/2972



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to