Skip to content

Commit 51fc894

Browse files
committed
fix(RNPM): fix rnpm-plugin-windows to work with react-native-cli/rnpm/windows/index
RNPM has recently moved to react-native, and there have been a few changes to the core behavior. Making sure our plugin is compatible.
1 parent a89c4fe commit 51fc894

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

local-cli/rnpm/windows/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
module.exports = [{
1+
module.exports = {
22
func: require('./src/windows'),
33
description: 'Generate React Native Windows template project',
44
name: 'windows [name]',
55
options: [{
6-
flags: '--windowsVersion <version>',
6+
command: '--windowsVersion [version]',
77
description: 'The version of react-native-windows to use.'
88
}, {
9-
flags: '--namespace <namespace>',
9+
command: '--namespace [namespace]',
1010
description: 'The native project namespace.'
1111
}]
12-
}];
12+
};

local-cli/rnpm/windows/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rnpm-plugin-windows",
3-
"version": "0.1.1",
3+
"version": "0.2.0-rc.0",
44
"description": "rnpm plugin that generates a Windows template project",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)