Skip to content

Commit c86c349

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/dep_updaters/update-acorn-walk.sh

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

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

35+
NPM_VERSION=$("$NODE" "$NPM" --version)
36+
37+
"$NODE" "$NPM" pkg set 'engines.npm'="$NPM_VERSION"
38+
3539
"$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts "acorn-walk@$NEW_VERSION"
3640
)
3741

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

44+
mv acorn-walk-tmp/package-lock.json deps/acorn/acorn-walk/
45+
4046
rm -rf acorn-walk-tmp/
4147

4248
echo "All done!"

0 commit comments

Comments
 (0)