@@ -85,18 +85,18 @@ npm start -- --smoke-test
85
85
# ******************************************************************************
86
86
87
87
# Pack CLI (it doesn't need cleaning)
88
- cd packages/create-react-app
88
+ cd $root_path / packages/create-react-app
89
89
cli_path=$PWD /` npm pack`
90
90
91
91
# Packing react-scripts takes more work because we want to clean it up first.
92
92
# Create a temporary clean folder that contains production only code.
93
93
# Do not overwrite any files in the current folder.
94
94
clean_path=` mktemp -d 2> /dev/null || mktemp -d -t ' clean_path' `
95
95
96
- # Copy some of the project files to the temporary folder.
96
+ # Copy some of the react-scripts project files to the temporary folder.
97
97
# Exclude folders that definitely won’t be part of the package from processing.
98
98
# We will strip the dev-only code there, `npm pack`, and copy the package back.
99
- cd $root_path
99
+ cd $root_path /packages/react-scripts
100
100
rsync -av --exclude=' .git' --exclude=$clean_path \
101
101
--exclude=' node_modules' --exclude=' build' \
102
102
' ./' $clean_path > /dev/null
@@ -183,7 +183,7 @@ npm start -- --smoke-test
183
183
184
184
185
185
# ******************************************************************************
186
- # Test --scripts-version is a version number
186
+ # Test --scripts-version with a version number
187
187
# ******************************************************************************
188
188
189
189
cd $temp_app_path
@@ -195,7 +195,7 @@ test -e node_modules/react-scripts
195
195
grep ' "version": "0.4.0"' node_modules/react-scripts/package.json
196
196
197
197
# ******************************************************************************
198
- # Test --scripts-version is a tarball url
198
+ # Test --scripts-version with a tarball url
199
199
# ******************************************************************************
200
200
201
201
cd $temp_app_path
@@ -207,7 +207,7 @@ test -e node_modules/react-scripts
207
207
grep ' "version": "0.4.0"' node_modules/react-scripts/package.json
208
208
209
209
# ******************************************************************************
210
- # Test --scripts-version is a custom fork of react-scripts
210
+ # Test --scripts-version with a custom fork of react-scripts
211
211
# ******************************************************************************
212
212
213
213
cd $temp_app_path
0 commit comments