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

ASF subversion and git services commented on CB-8741:
-----------------------------------------------------

Commit 4d081771e90c0d971751ba78da37a980d057337f in cordova-lib's branch 
refs/heads/master from [~TimBarham]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=4d08177 ]

CB-8741 Make plugin --save work more like npm install

1. 'plugin add --save' now always saves version (in the form '^x.y.z')
2. 'plugin add --save' now always overwrites an existing entry.
3. 'plugin add' now honors an existing version specified in config.xml when a
   plugin is added without a specific version, even if the '--save' flag is
   specified.

I also fixed a bug in isUrl() in util.js - url.protocol includes the colon, so
the protocol for a windows path is something like "c:" - 2 characters, not
one.

GitHub: close #198


> Plugin save/restore should behave like npm
> ------------------------------------------
>
>                 Key: CB-8741
>                 URL: https://issues.apache.org/jira/browse/CB-8741
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>    Affects Versions: Master
>            Reporter: Tim Barham
>            Assignee: Tim Barham
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Specifically:
> * Should *always* write out version (with '^') when saving.
> * Should write out version of plugin that ends up being installed, not 
> version taken from {{add}} command.
> * Should always overwrite existing entry when saving.
> * When no version specified in add command, should honor existing saved 
> version even when {{--save}} specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to