From f1ab58133724b130b7f021f16865fa203549a284 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Wed, 21 Oct 2015 11:27:37 +0100 Subject: [PATCH] [react-native-cli] Make 'npm start' call 'react-native start' --- react-native-cli/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/react-native-cli/index.js b/react-native-cli/index.js index f843cf99e..4bfd6e735 100755 --- a/react-native-cli/index.js +++ b/react-native-cli/index.js @@ -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);