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!"