Skip to content

Commit ba7539d

Browse files
authored
Don't pack dependencies on Travis (#46)
1 parent b91bf66 commit ba7539d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/e2e.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,18 @@ set -x
1919
# npm pack the two directories to make sure they are valid npm modules
2020
initial_path=$PWD
2121
cd ..
22+
23+
# A hacky way to avoid bundling dependencies.
24+
# Packing with them enabled takes too much memory, and Travis crashes.
25+
# End to end script is meant to run on Travis so it's not a big deal.
26+
# If you run it locally, you'll need to `git checkout -- package.json`.
27+
perl -i -p0e 's/bundledDependencies.*?]/bundledDependencies": []/s' package.json
28+
29+
# Pack react-scripts
2230
npm install
2331
scripts_path=$PWD/`npm pack`
32+
33+
# Pack CLI
2434
cd global-cli
2535
npm install
2636
cli_path=$PWD/`npm pack`

0 commit comments

Comments
 (0)