Skip to content

Commit 8d1b700

Browse files
tools: add package-lock when installing npm dependency
1 parent 20b996d commit 8d1b700

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/dep_updaters/update-acorn-walk.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,15 @@ rm -rf deps/acorn/acorn-walk
3232

3333
"$NODE" "$NPM" init --yes
3434

35+
"$NODE" "$NPM" pkg set 'engines.npm'=$("$NODE" "$NPM" --version)
36+
3537
"$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts "acorn-walk@$NEW_VERSION"
3638
)
3739

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

42+
mv acorn-walk-tmp/package-lock.json deps/acorn/acorn-walk/
43+
4044
rm -rf acorn-walk-tmp/
4145

4246
echo "All done!"

0 commit comments

Comments
 (0)