[react-native-cli] Make 'npm start' call 'react-native start'
This commit is contained in:
parent
c6c97cbd9d
commit
f1ab581337
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue