@@ -14,8 +14,8 @@ var pathExists = require('path-exists');
14
14
var chalk = require ( 'chalk' ) ;
15
15
16
16
module . 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 ) ;
19
19
var appPackage = require ( path . join ( appPath , 'package.json' ) ) ;
20
20
21
21
// Copy over some of the devDependencies
@@ -24,10 +24,10 @@ module.exports = function(appPath, appName, verbose, originalDirectory) {
24
24
25
25
// Setup the script rules
26
26
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'
31
31
} ;
32
32
33
33
fs . writeFileSync (
0 commit comments