Use full path to packager for generated project

This way people without react-native-cli can still do `npm start`
This commit is contained in:
Alexander Kotliarskyi 2015-03-26 08:59:10 -04:00
parent b917bb826c
commit d6c9648aea

View File

@ -70,7 +70,7 @@ function init(name) {
version: '0.0.1',
private: true,
scripts: {
start: "react-native start"
start: "node_modules/react-native/packager/packager.sh"
}
};
fs.writeFileSync(path.join(root, 'package.json'), JSON.stringify(packageJson));