Skip to content

Commit

Permalink
Ensure that npm dependencies are installed if package.json is modified
Browse files Browse the repository at this point in the history
With the following steps, the second invocation of `make` should trigger
installation of npm dependencies:

 1. Run `make`
 2. Edit dependencies in `package.json`
 3. Run `make` again
  • Loading branch information
robertknight committed Nov 4, 2016
1 parent 5d688ec commit 93d3444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ lint: node_modules/.uptodate
build/manifest.json: node_modules/.uptodate
npm run-script build

node_modules/.uptodate:
node_modules/.uptodate: package.json npm-shrinkwrap.json
npm run-script deps 2>/dev/null || npm install
@touch $@

0 comments on commit 93d3444

Please sign in to comment.