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 c86c349
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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,17 @@ rm -rf deps/acorn/acorn-walk

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

NPM_VERSION=$("$NODE" "$NPM" --version)

"$NODE" "$NPM" pkg set 'engines.npm'="$NPM_VERSION"

"$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 c86c349

Please sign in to comment.