Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

clean up npm

  • Loading branch information...
commit 24202a6b11b4b0895c4d0746c0858002a6e85b13 1 parent 3330672
@ddollar ddollar authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 bin/compile
View
12 bin/compile
@@ -95,7 +95,6 @@ function package_download() {
mkdir -p $location
package="http://${S3_BUCKET}.s3.amazonaws.com/$engine-$version.tgz"
- echo "downloading $engine $version"
curl $package -s -o - | tar xzf - -C $location
}
@@ -171,15 +170,8 @@ fi
# install dependencies with npm
echo "-----> Installing dependencies with npm"
-cd $BUILD_DIR
-HOME="$BUILD_DIR" $VENDORED_NODE/bin/node $VENDORED_NPM/cli.js prune 2>&1 | indent
-HOME="$BUILD_DIR" $VENDORED_NODE/bin/node $VENDORED_NPM/cli.js install 2>&1 | indent
-if [ "${PIPESTATUS[*]}" != "0 0" ]; then
- error "Failed to install dependencies with npm"
-else
- echo " Dependencies installed"
-fi
-
+run_npm "install"
+run_npm "rebuild"
echo "Dependencies installed" | indent
# repack cache with new assets
Please sign in to comment.
Something went wrong with that request. Please try again.