npm: use package-lock.json as our stamp

package-lock.json is the perfect natural stamp file to be using here, we
don't need a separate one.  Drop node_modules/.stamp.
This commit is contained in:
Allison Karlitskaya 2021-04-19 10:47:39 +02:00 committed by Martin Pitt
parent 8f32022472
commit d3f51710dd
2 changed files with 2 additions and 5 deletions

View File

@ -36,7 +36,6 @@ MAINTAINERCLEANFILES = \
EXTRA_DIST = \
package.json \
package-lock.json \
node_modules/.stamp \
README.md \
$(NULL)
@ -182,7 +181,7 @@ EXTRA_DIST += $(MANIFESTS) $(WEBPACK_DEPS) webpack.config.js
dist/%/Makefile.deps:
@true
dist/%/manifest.json: $(WEBPACK_CONFIG) $(srcdir)/tools/webpack-make $(srcdir)/node_modules/.stamp
dist/%/manifest.json: $(WEBPACK_CONFIG) $(srcdir)/tools/webpack-make $(srcdir)/package-lock.json
$(V_WEBPACK) $(WEBPACK_MAKE) -d dist/$*/Makefile.deps -c $(WEBPACK_CONFIG)
-include $(WEBPACK_DEPS)
@ -194,7 +193,7 @@ clean-local::
maintainer-clean-local::
rm -rf dist/ node_modules/ package-lock.json
node_modules/.stamp: package.json
package-lock.json: package.json
@echo ''
@echo ' package.json changed'
@echo ''

View File

@ -37,5 +37,3 @@ while ! npm install; do
rm -rf node_modules
done
touch node_modules/.stamp