Skip to content

Commit b08694d

Browse files
MylesBorinshashseed
authored andcommitted
tools: ensure doc-only doesn't update package-lock
Currently `make doc-only` is updating the package-lock.json which is breaking our release build. This adds the flags `--no-package-lock` when running `npm install` to ensure the package-lock.json is not changed unintentionally by running make PR-URL: nodejs#21015 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent bd2c019 commit b08694d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ available-node = \
645645
exit 1; \
646646
fi;
647647

648-
run-npm-install = $(PWD)/$(NPM) install --production
648+
run-npm-install = $(PWD)/$(NPM) install --production --no-package-lock
649649

650650
tools/doc/node_modules/js-yaml/package.json:
651651
cd tools/doc && $(call available-node,$(run-npm-install))

0 commit comments

Comments
 (0)