From 79919a3a9af52463cfcb33bf7a08e9844796875d Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Tue, 29 May 2018 17:12:52 +0200 Subject: [PATCH] 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 Reviewed-By: Refael Ackermann Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 09e6c2061f686e..6fd39fb179c753 100644 --- a/Makefile +++ b/Makefile @@ -592,7 +592,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))