From 8d1b700c4c689e9c14a27cf5e6747df92b1bd3dd Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Thu, 21 Sep 2023 18:18:42 +0200 Subject: [PATCH] tools: add package-lock when installing npm dependency --- tools/dep_updaters/update-acorn-walk.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/dep_updaters/update-acorn-walk.sh b/tools/dep_updaters/update-acorn-walk.sh index ea49a1ec5ad3e7..0590a084d9a364 100755 --- a/tools/dep_updaters/update-acorn-walk.sh +++ b/tools/dep_updaters/update-acorn-walk.sh @@ -32,11 +32,15 @@ rm -rf deps/acorn/acorn-walk "$NODE" "$NPM" init --yes + "$NODE" "$NPM" pkg set 'engines.npm'=$("$NODE" "$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!"