Skip to content

Commit

Permalink
tools: add package-lock when installing npm dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Sep 21, 2023
1 parent 20b996d commit 8d1b700
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/dep_updaters/update-acorn-walk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ rm -rf deps/acorn/acorn-walk

"$NODE" "$NPM" init --yes

"$NODE" "$NPM" pkg set 'engines.npm'=$("$NODE" "$NPM" --version)

Check failure on line 35 in tools/dep_updaters/update-acorn-walk.sh

View workflow job for this annotation

GitHub Actions / lint-sh

/home/runner/work/node/node/tools/dep_updaters/update-acorn-walk.sh:35:42: Quote this to prevent word splitting.

Check failure on line 35 in tools/dep_updaters/update-acorn-walk.sh

View workflow job for this annotation

GitHub Actions / lint-sh

/home/runner/work/node/node/tools/dep_updaters/update-acorn-walk.sh:35:44: Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore).

"$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts "acorn-walk@$NEW_VERSION"
)

mv acorn-walk-tmp/node_modules/acorn-walk deps/acorn

mv acorn-walk-tmp/package-lock.json deps/acorn/acorn-walk/

rm -rf acorn-walk-tmp/

echo "All done!"
Expand Down

0 comments on commit 8d1b700

Please sign in to comment.