Skip to content

Commit 79919a3

Browse files
MylesBorinsrvagg
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: #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>
1 parent 6718291 commit 79919a3

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
@@ -592,7 +592,7 @@ available-node = \
592592
exit 1; \
593593
fi;
594594

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

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

0 commit comments

Comments
 (0)