@@ -49,8 +49,8 @@ var argv = require('minimist')(process.argv.slice(2));
4949 * --scripts-version <alternative package>
5050 * Example of valid values:
5151 * - a specific npm version: "0.22.0-rc1"
52- * - a .tgz archive from any npm repo: "https://registry.npmjs.org/create- react-app- scripts/-/create- react-app -scripts-0.20.0.tgz"
53- * - a package prepared with `npm pack`: "/Users/home/vjeux/create-react-app/create- react-app -scripts-0.22.0.tgz"
52+ * - a .tgz archive from any npm repo: "https://registry.npmjs.org/react-scripts/-/react-scripts-0.20.0.tgz"
53+ * - a package prepared with `npm pack`: "/Users/home/vjeux/create-react-app/react-scripts-0.22.0.tgz"
5454 */
5555var commands = argv . _ ;
5656if ( commands . length === 0 ) {
@@ -91,7 +91,7 @@ function createApp(name, verbose, version) {
9191 fs . writeFileSync ( path . join ( root , 'package.json' ) , JSON . stringify ( packageJson ) ) ;
9292 process . chdir ( root ) ;
9393
94- console . log ( 'Installing create- react-app -scripts package from npm...' ) ;
94+ console . log ( 'Installing react-scripts package from npm...' ) ;
9595 console . log ( 'This might take a while! ⌛' ) ;
9696 console . log ( ) ;
9797
@@ -116,7 +116,7 @@ function run(root, appName, version, verbose) {
116116 var scriptsPath = path . resolve (
117117 process . cwd ( ) ,
118118 'node_modules' ,
119- 'create- react-app -scripts' ,
119+ 'react-scripts' ,
120120 'scripts' ,
121121 'init.js'
122122 ) ;
@@ -126,7 +126,7 @@ function run(root, appName, version, verbose) {
126126}
127127
128128function getInstallPackage ( version ) {
129- var packageToInstall = 'create- react-app -scripts' ;
129+ var packageToInstall = 'react-scripts' ;
130130 var validSemver = semver . valid ( version ) ;
131131 if ( validSemver ) {
132132 packageToInstall += '@' + validSemver ;
@@ -141,7 +141,7 @@ function checkNodeVersion() {
141141 var packageJsonPath = path . resolve (
142142 process . cwd ( ) ,
143143 'node_modules' ,
144- 'create- react-app -scripts' ,
144+ 'react-scripts' ,
145145 'package.json'
146146 ) ;
147147 var packageJson = require ( packageJsonPath ) ;
0 commit comments