Fix updating of node_modules/
`npm install` does not update/touch an already existing
package-lock.json. Thus after
make
touch package.json
make
a subsequent `make` would still run `npm install`. To fix this, remove
package-lock.json before `npm install`, so that (1) package-lock.json
always gets touched and thus the make rule actually works, and (2)
during development we always get up to date packages (we only really
want the "locking" behaviour for building from release tarballs).
Also run `npm prune` so that switching between git trees with
added/removed modules works correctly.
Closes #223
This commit is contained in:
parent
bfc4039b3e
commit
0afad278eb
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
|
@ -148,6 +148,9 @@ test/common:
|
|||
git reset test/common
|
||||
|
||||
$(NODE_MODULES_TEST): package.json
|
||||
# if it exists already, npm install won't update it; force that so that we always get up-to-date packages
|
||||
rm -f package-lock.json
|
||||
npm install
|
||||
npm prune
|
||||
|
||||
.PHONY: all clean install devel-install dist-gzip srpm rpm check vm update-po
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue