[react-native-cli] Make 'npm start' call 'react-native start'

This commit is contained in:
Martin Konicek 2015-10-21 11:27:37 +01:00
parent c6c97cbd9d
commit f1ab581337
1 changed files with 4 additions and 1 deletions

View File

@ -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);