Skip to content

Commit

Permalink
feat: install-tool lerna (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored Nov 10, 2021
1 parent 3061840 commit bda81d4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/usr/local/buildpack/tools/lerna.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -e

check_command node

if [[ $EUID -eq 0 ]]; then
unset NPM_CONFIG_PREFIX
fi

npm install -g lerna@${TOOL_VERSION}

lerna --version

if [[ $EUID -eq 0 ]]; then
shell_wrapper lerna
fi

# Clean download cache
npm cache clean --force
# Clean node-gyp cache
rm -rf /root/.cache

0 comments on commit bda81d4

Please sign in to comment.