diff --git a/tasks/e2e-kitchensink.sh b/tasks/e2e-kitchensink.sh index 10bdc077931..086c070ec55 100755 --- a/tasks/e2e-kitchensink.sh +++ b/tasks/e2e-kitchensink.sh @@ -164,7 +164,7 @@ npm install test-integrity@^2.0.1 cd "$temp_app_path/test-kitchensink" # Link to our preset -npm link "$root_path"/packages/babel-preset-react-app +cp -r "$root_path"/packages/babel-preset-react-app node_modules # Link to test module npm link "$temp_module_path/node_modules/test-integrity" @@ -219,16 +219,16 @@ E2E_FILE=./build/index.html \ # ****************************************************************************** # Unlink our preset -npm unlink "$root_path"/packages/babel-preset-react-app +rm -rf node_modules/packages/babel-preset-react-app # Eject... echo yes | npm run eject # ...but still link to the local packages -npm link "$root_path"/packages/babel-preset-react-app -npm link "$root_path"/packages/eslint-config-react-app -npm link "$root_path"/packages/react-dev-utils -npm link "$root_path"/packages/react-scripts +cp -r "$root_path"/packages/babel-preset-react-app node_modules +cp -r "$root_path"/packages/eslint-config-react-app node_modules +cp -r "$root_path"/packages/react-dev-utils node_modules +cp -r "$root_path"/packages/react-scripts node_modules # Link to test module npm link "$temp_module_path/node_modules/test-integrity" diff --git a/tasks/e2e-simple.sh b/tasks/e2e-simple.sh index 84d095e9496..f04e29a5bb3 100755 --- a/tasks/e2e-simple.sh +++ b/tasks/e2e-simple.sh @@ -309,10 +309,10 @@ verify_module_scope echo yes | npm run eject # ...but still link to the local packages -npm link "$root_path"/packages/babel-preset-react-app -npm link "$root_path"/packages/eslint-config-react-app -npm link "$root_path"/packages/react-dev-utils -npm link "$root_path"/packages/react-scripts +cp -r "$root_path"/packages/babel-preset-react-app node_modules +cp -r "$root_path"/packages/eslint-config-react-app node_modules +cp -r "$root_path"/packages/react-dev-utils node_modules +cp -r "$root_path"/packages/react-scripts node_modules # Test the build npm run build