mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-12 19:48:30 +08:00
Respect projectName on template creation
This commit is contained in:
3
react-native-cli/index.js
vendored
3
react-native-cli/index.js
vendored
@@ -144,8 +144,9 @@ function createProject(name) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
var args = [projectName].concat(process.argv.slice(4));
|
||||
cli = require(CLI_MODULE_PATH());
|
||||
cli.init(root, projectName);
|
||||
cli.init(root, args);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user