@@ -85,18 +85,18 @@ npm start -- --smoke-test
8585# ******************************************************************************
8686
8787# Pack CLI (it doesn't need cleaning)
88- cd packages/create-react-app
88+ cd $root_path / packages/create-react-app
8989cli_path=$PWD /` npm pack`
9090
9191# Packing react-scripts takes more work because we want to clean it up first.
9292# Create a temporary clean folder that contains production only code.
9393# Do not overwrite any files in the current folder.
9494clean_path=` mktemp -d 2> /dev/null || mktemp -d -t ' clean_path' `
9595
96- # Copy some of the project files to the temporary folder.
96+ # Copy some of the react-scripts project files to the temporary folder.
9797# Exclude folders that definitely won’t be part of the package from processing.
9898# 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
100100rsync -av --exclude=' .git' --exclude=$clean_path \
101101 --exclude=' node_modules' --exclude=' build' \
102102 ' ./' $clean_path > /dev/null
@@ -183,7 +183,7 @@ npm start -- --smoke-test
183183
184184
185185# ******************************************************************************
186- # Test --scripts-version is a version number
186+ # Test --scripts-version with a version number
187187# ******************************************************************************
188188
189189cd $temp_app_path
@@ -195,7 +195,7 @@ test -e node_modules/react-scripts
195195grep ' "version": "0.4.0"' node_modules/react-scripts/package.json
196196
197197# ******************************************************************************
198- # Test --scripts-version is a tarball url
198+ # Test --scripts-version with a tarball url
199199# ******************************************************************************
200200
201201cd $temp_app_path
@@ -207,7 +207,7 @@ test -e node_modules/react-scripts
207207grep ' "version": "0.4.0"' node_modules/react-scripts/package.json
208208
209209# ******************************************************************************
210- # Test --scripts-version is a custom fork of react-scripts
210+ # Test --scripts-version with a custom fork of react-scripts
211211# ******************************************************************************
212212
213213cd $temp_app_path
0 commit comments