cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Audrey So (JIRA)" <>
Subject [jira] [Commented] (CB-12757) Cordova@7 saves wrong spec in config.xml for git plugins
Date Wed, 03 May 2017 17:43:04 GMT


Audrey So commented on CB-12757:

Hi! I am trying to reproduce your issue. When you run:
```cordova plugin add cordova-plugin-ayogo-push@AyogoHealth/cordova-plugin-push```

In pkgJson, you get: --> 
```"plugins": {
            "cordova-plugin-ayogo-push": {}```
In config.xml, you get: -->
```<plugin name="cordova-plugin-ayogo-push" spec="~1.0.0" />```

Then I ran ```cordova prepare```.

In pkgJson -->
```"plugins": {
            "cordova-plugin-ayogo-push": {},```

In config.xml -->
```<plugin name="cordova-plugin-ayogo-push" spec="github:ayogohealth/cordova-plugin-push"

Is this the same thing that you are seeing? Thank you!

> Cordova@7 saves wrong spec in config.xml for git plugins
> --------------------------------------------------------
>                 Key: CB-12757
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>            Reporter: Darryl Pogue
>            Priority: Minor
> (This possibly existed in earlier versions, I never used on the {{--save}} flag so I'm
not sure...)
> {code}
> cordova plugin add cordova-plugin-ayogo-push@AyogoHealth/cordova-plugin-push
> {code}
> It saves the github repo properly into package.json, but in config.xml it sets the spec
to the version number. This will fail to restore (from config.xml) because the plugin isn't
published to the npm registry.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message