File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -164,10 +164,10 @@ npm install test-integrity@^2.0.1
164
164
cd " $temp_app_path /test-kitchensink"
165
165
166
166
# 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
168
168
169
169
# 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
171
171
172
172
# Test the build
173
173
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
@@ -225,13 +225,13 @@ npm unlink "$root_path"/packages/babel-preset-react-app
225
225
echo yes | npm run eject
226
226
227
227
# ...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
232
232
233
233
# 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
235
235
236
236
# Test the build
237
237
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
Original file line number Diff line number Diff line change @@ -309,10 +309,10 @@ verify_module_scope
309
309
echo yes | npm run eject
310
310
311
311
# ...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
316
316
317
317
# Test the build
318
318
npm run build
You can’t perform that action at this time.
0 commit comments