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:
parent
8f32022472
commit
d3f51710dd
|
@ -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 ''
|
||||
|
|
|
@ -37,5 +37,3 @@ while ! npm install; do
|
|||
|
||||
rm -rf node_modules
|
||||
done
|
||||
|
||||
touch node_modules/.stamp
|
||||
|
|
Loading…
Reference in New Issue