@@ -14,8 +14,8 @@ var pathExists = require('path-exists');
1414var chalk = require ( 'chalk' ) ;
1515
1616module . exports = function ( appPath , appName , verbose , originalDirectory ) {
17- var ownPath = path . join ( appPath , 'node_modules ' , 'react-scripts' ) ;
18-
17+ var ownPackageName = require ( path . join ( __dirname , '.. ' , 'package.json' ) ) . name ;
18+ var ownPath = path . join ( appPath , 'node_modules' , ownPackageName ) ;
1919 var appPackage = require ( path . join ( appPath , 'package.json' ) ) ;
2020
2121 // Copy over some of the devDependencies
@@ -24,10 +24,10 @@ module.exports = function(appPath, appName, verbose, originalDirectory) {
2424
2525 // Setup the script rules
2626 appPackage . scripts = {
27- 'start' : 'react-scripts start',
28- 'build' : 'react-scripts build',
29- 'test' : 'react-scripts test --env=jsdom',
30- 'eject' : 'react-scripts eject'
27+ 'start' : ownPackageName + ' start',
28+ 'build' : ownPackageName + ' build',
29+ 'test' : ownPackageName + ' test --env=jsdom',
30+ 'eject' : ownPackageName + ' eject'
3131 } ;
3232
3333 fs . writeFileSync (
0 commit comments