Dedupe and flatten node_modules

This commit is contained in:
Slava Kim
2015-01-07 10:34:09 -08:00
committed by Sashko Stubailo
parent 7253c8ee9c
commit ef60dbaccd
2 changed files with 4 additions and 1 deletions

2
meteor
View File

@@ -1,6 +1,6 @@
#!/bin/bash
BUNDLE_VERSION=0.3.84
BUNDLE_VERSION=0.4.1
# OS Check. Put here because here is where we download the precompiled
# bundles that are arch specific.

View File

@@ -45,6 +45,9 @@ cd "${DIR}\b\p"
node "${CHECKOUT_DIR}\scripts\dev-bundle-tool-package.js" | out-file -FilePath package.json -Encoding ascii
npm install --production
npm dedupe
# install the latest flatten-packages
npm install -g flatten-packages
flatten-packages .
cp -R "${DIR}\b\p\node_modules\" "${DIR}\lib\node_modules\"
cd "$DIR"