mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 17:34:07 +08:00
[react-native-cli] Make 'npm start' call 'react-native start'
This commit is contained in:
5
react-native-cli/index.js
vendored
5
react-native-cli/index.js
vendored
@@ -159,7 +159,10 @@ function createProject(name, verbose) {
|
||||
var packageJson = {
|
||||
name: projectName,
|
||||
version: '0.0.1',
|
||||
private: true
|
||||
private: true,
|
||||
scripts: {
|
||||
start: 'react-native start'
|
||||
}
|
||||
};
|
||||
fs.writeFileSync(path.join(root, 'package.json'), JSON.stringify(packageJson));
|
||||
process.chdir(root);
|
||||
|
||||
Reference in New Issue
Block a user