mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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: https://github.com/nodejs/node/pull/21015 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
2
Makefile
2
Makefile
@@ -643,7 +643,7 @@ available-node = \
|
||||
exit 1; \
|
||||
fi;
|
||||
|
||||
run-npm-install = $(PWD)/$(NPM) install --production
|
||||
run-npm-install = $(PWD)/$(NPM) install --production --no-package-lock
|
||||
|
||||
tools/doc/node_modules/js-yaml/package.json:
|
||||
cd tools/doc && $(call available-node,$(run-npm-install))
|
||||
|
||||
Reference in New Issue
Block a user