Skip to content

Commit 4bb418b

Browse files
committed
use cp instead of npm link
1 parent 44cfbcc commit 4bb418b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Diff for: tasks/e2e-kitchensink.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ npm install test-integrity@^2.0.1
164164
cd "$temp_app_path/test-kitchensink"
165165

166166
# Link to our preset
167-
npm link "$root_path"/packages/babel-preset-react-app
167+
cp -r "$root_path"/packages/babel-preset-react-app node_modules
168168

169169
# Link to test module
170-
npm link "$temp_module_path/node_modules/test-integrity"
170+
cp -r "$temp_module_path/node_modules/test-integrity" node_modules
171171

172172
# Test the build
173173
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
@@ -225,13 +225,13 @@ npm unlink "$root_path"/packages/babel-preset-react-app
225225
echo yes | npm run eject
226226

227227
# ...but still link to the local packages
228-
npm link "$root_path"/packages/babel-preset-react-app
229-
npm link "$root_path"/packages/eslint-config-react-app
230-
npm link "$root_path"/packages/react-dev-utils
231-
npm link "$root_path"/packages/react-scripts
228+
cp -r "$root_path"/packages/babel-preset-react-app node_modules
229+
cp -r "$root_path"/packages/eslint-config-react-app node_modules
230+
cp -r "$root_path"/packages/react-dev-utils node_modules
231+
cp -r "$root_path"/packages/react-scripts node_modules
232232

233233
# Link to test module
234-
npm link "$temp_module_path/node_modules/test-integrity"
234+
cp -r "$temp_module_path/node_modules/test-integrity" node_modules
235235

236236
# Test the build
237237
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \

Diff for: tasks/e2e-simple.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ verify_module_scope
309309
echo yes | npm run eject
310310

311311
# ...but still link to the local packages
312-
npm link "$root_path"/packages/babel-preset-react-app
313-
npm link "$root_path"/packages/eslint-config-react-app
314-
npm link "$root_path"/packages/react-dev-utils
315-
npm link "$root_path"/packages/react-scripts
312+
cp -r "$root_path"/packages/babel-preset-react-app node_modules
313+
cp -r "$root_path"/packages/eslint-config-react-app node_modules
314+
cp -r "$root_path"/packages/react-dev-utils node_modules
315+
cp -r "$root_path"/packages/react-scripts node_modules
316316

317317
# Test the build
318318
npm run build

0 commit comments

Comments
 (0)