Use npm ci instead; and also ci if package-lock.json changes (#5335)

This commit is contained in:
Matt Godbolt
2023-08-21 22:09:08 -05:00
committed by GitHub
parent 2754324e1b
commit 5c51cecd9c

View File

@@ -32,8 +32,8 @@ info: node-installed ## print out some useful variables
.PHONY: prereqs
prereqs: $(NODE_MODULES)
$(NODE_MODULES): package.json | node-installed
$(NPM) install $(NPM_FLAGS)
$(NODE_MODULES): package.json package-lock.json | node-installed
$(NPM) clean-install $(NPM_FLAGS)
@rm -rf node_modules/.cache/esm/*
@touch $@