diff --git a/tasks/e2e-kitchensink.sh b/tasks/e2e-kitchensink.sh index eecd6ed62a7..11a0bcd11c3 100755 --- a/tasks/e2e-kitchensink.sh +++ b/tasks/e2e-kitchensink.sh @@ -22,6 +22,8 @@ temp_app_path=`mktemp -d 2>/dev/null || mktemp -d -t 'temp_app_path'` function cleanup { echo 'Cleaning up.' cd $root_path + # Restore removed .npmignore + mv $root_path/packages/react-scripts/.npmignore.orig $root_path/packages/react-scripts/.npmignore # Uncomment when snapshot testing is enabled by default: # rm ./packages/react-scripts/template/src/__snapshots__/App.test.js.snap rm -rf $temp_cli_path $temp_app_path @@ -93,6 +95,9 @@ cp package.json package.json.orig # of those packages. node $root_path/tasks/replace-own-deps.js +# Save .npmignore becasue we're going to remove it +cp $root_path/packages/react-scripts/.npmignore $root_path/packages/react-scripts/.npmignore.orig + # Remove .npmignore so the test template is added rm $root_path/packages/react-scripts/.npmignore