Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Revert "Merge pull request #114 from netlify/handle-npm-lock"
Browse files Browse the repository at this point in the history
This reverts commit bf9a879, reversing
changes made to 10a2dc3.
  • Loading branch information
brycekahle committed Dec 14, 2017
1 parent bf9a879 commit afdc72d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions run-build-functions.sh
Expand Up @@ -106,9 +106,7 @@ run_npm() {
fi
fi

if install_deps package.json $NODE_VERSION $NETLIFY_CACHE_DIR/package-sha || \
install_deps package-lock.json $NODE_VERSION $NETLIFY_CACHE_DIR/package-lock-sha || \
install_deps npm-shrinkwrap.json $NODE_VERSION $NETLIFY_CACHE_DIR/package-shrinkwrap-sha
if install_deps package.json $NODE_VERSION $NETLIFY_CACHE_DIR/package-sha
then
echo "Installing NPM modules using NPM version $(npm --version)"
run_npm_set_temp
Expand All @@ -120,14 +118,6 @@ run_npm() {
fi

echo "$(shasum package.json)-$NODE_VERSION" > $NETLIFY_CACHE_DIR/package-sha
if [ -f package-lock.json ]
then
echo "$(shasum package-lock.json)-$NODE_VERSION" > $NETLIFY_CACHE_DIR/package-lock-sha
fi
if [ -f npm-shrinkwrap.json ]
then
echo "$(shasum npm-shrinkwrap.json)-$NODE_VERSION" > $NETLIFY_CACHE_DIR/package-shrinkwrap-sha
fi
fi
export PATH=$(npm bin):$PATH
}
Expand Down

0 comments on commit afdc72d

Please sign in to comment.