@@ -120,7 +120,7 @@ npx create-react-app --version
120
120
# ******************************************************************************
121
121
122
122
cd " $temp_app_path "
123
- npx create-react-app -- scripts-version=@latest test-app-dist-tag
123
+ npx create-react-app test-app-dist-tag -- scripts-version=@latest
124
124
cd test-app-dist-tag
125
125
126
126
# Check corresponding scripts version is installed and no TypeScript is present.
@@ -135,7 +135,7 @@ checkDependencies
135
135
# ******************************************************************************
136
136
137
137
cd " $temp_app_path "
138
- npx create-react-app -- scripts-version=1.0.17 test-app-version-number
138
+ npx create-react-app test-app-version-number -- scripts-version=1.0.17
139
139
cd test-app-version-number
140
140
141
141
# Check corresponding scripts version is installed.
@@ -148,7 +148,7 @@ checkDependencies
148
148
# ******************************************************************************
149
149
150
150
cd " $temp_app_path "
151
- npx create-react-app -- use-npm --scripts-version=1.0.17 test-use-npm-flag
151
+ npx create-react-app test-use-npm-flag -- use-npm --scripts-version=1.0.17
152
152
cd test-use-npm-flag
153
153
154
154
# Check corresponding scripts version is installed.
@@ -196,7 +196,7 @@ CI=true yarn test
196
196
# ******************************************************************************
197
197
198
198
cd " $temp_app_path "
199
- npx create-react-app -- scripts-version=https://registry.npmjs.org/react-scripts/-/react-scripts-1.0.17.tgz test-app-tarball-url
199
+ npx create-react-app test-app-tarball-url -- scripts-version=https://registry.npmjs.org/react-scripts/-/react-scripts-1.0.17.tgz
200
200
cd test-app-tarball-url
201
201
202
202
# Check corresponding scripts version is installed.
@@ -209,7 +209,7 @@ checkDependencies
209
209
# ******************************************************************************
210
210
211
211
cd " $temp_app_path "
212
- npx create-react-app -- scripts-version=react-scripts-fork test-app -fork
212
+ npx create-react-app test-app-fork -- scripts-version=react-scripts-fork
213
213
cd test-app-fork
214
214
215
215
# Check corresponding scripts version is installed.
@@ -221,7 +221,7 @@ exists node_modules/react-scripts-fork
221
221
222
222
cd " $temp_app_path "
223
223
# we will install a non-existing package to simulate a failed installataion.
224
- npx create-react-app -- scripts-version=` date +%s` test-app-should-not-exist || true
224
+ npx create-react-app test-app-should-not-exist -- scripts-version=` date +%s` || true
225
225
# confirm that the project files were deleted
226
226
test ! -e test-app-should-not-exist/package.json
227
227
test ! -d test-app-should-not-exist/node_modules
@@ -234,7 +234,7 @@ cd "$temp_app_path"
234
234
mkdir test-app-should-remain
235
235
echo ' ## Hello' > ./test-app-should-remain/README.md
236
236
# we will install a non-existing package to simulate a failed installataion.
237
- npx create-react-app -- scripts-version=` date +%s` test-app-should-remain || true
237
+ npx create-react-app test-app-should-remain -- scripts-version=` date +%s` || true
238
238
# confirm the file exist
239
239
test -e test-app-should-remain/README.md
240
240
# confirm only README.md and error log are the only files in the directory
248
248
249
249
cd $temp_app_path
250
250
curl " https://registry.npmjs.org/@enoah_netzach/react-scripts/-/react-scripts-0.9.0.tgz" -o enoah-scripts-0.9.0.tgz
251
- npx create-react-app -- scripts-version=$temp_app_path /enoah-scripts-0.9.0.tgz test-app-scoped-fork- tgz
251
+ npx create-react-app test-app-scoped-fork-tgz -- scripts-version=$temp_app_path /enoah-scripts-0.9.0.tgz
252
252
cd test-app-scoped-fork-tgz
253
253
254
254
# Check corresponding scripts version is installed.
0 commit comments