Skip to content

Commit 9cb8149

Browse files
Add cordovaDependencies section to package.json
This reflects `engines` elements from plugin manifest to package.json to comply w/ [new plugin fetching model](https://github.com/cordova/cordova-discuss/blob/master/proposals/plugin-version-fetching.md). This also adds a 'protective' entry for next major plugin version to protect end-users from fetching edge versions of the plugin by incompatible version of cordova. See corresponding [discussion on mailing list](http://apache.markmail.org/thread/p73loqtvbzvfzsv5) for more details and reasons behind this.
1 parent 74aeb80 commit 9cb8149

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@
2525
"cordova-ios",
2626
"cordova-windows"
2727
],
28-
"engines": [
29-
{
30-
"name": "cordova-plugman",
31-
"version": ">=5.0.0"
32-
},
33-
{
34-
"name": "cordova-android",
35-
"version": ">=5.0.0"
28+
"engines": {
29+
"cordovaDependencies": {
30+
"4.2.0": {
31+
"cordova": ">=5.0.0",
32+
"cordova-android": ">=5.0.0"
33+
},
34+
"5.0.0": {
35+
"cordova": ">=100"
36+
}
3637
}
37-
],
38+
},
3839
"author": "Rand Dusing",
3940
"license": "MIT",
4041
"bugs": {

0 commit comments

Comments
 (0)