diff --git a/.gitignore b/.gitignore index 91e60255b44d5..7b2c8a301c245 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,8 @@ pack coverage .nyc_output .LAST_BUILD -*.swp +*.sw[a-z] +*~ # we don't want tsconfig at the root /tsconfig.json diff --git a/build.sh b/build.sh index 505c8ef99d457..3a3d42cac6f0f 100755 --- a/build.sh +++ b/build.sh @@ -41,6 +41,7 @@ BUILD_INDICATOR=".BUILD_COMPLETED" rm -rf $BUILD_INDICATOR export PATH=node_modules/.bin:$PATH +export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}" # Speed up build by reusing calculated tree hashes # On dev machine, this speeds up the TypeScript part of the build by ~30%. diff --git a/bump.sh b/bump.sh index 27bdd8a2584f1..5a23b6019b79e 100755 --- a/bump.sh +++ b/bump.sh @@ -6,8 +6,9 @@ if [ -z "${ver}" ]; then exit 1 fi -/bin/bash ./install.sh +export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}" +/bin/bash ./install.sh lerna publish --force-publish=* --skip-npm --skip-git --repo-version ${ver} @@ -23,4 +24,3 @@ cat > /tmp/context.json <