Skip to content

Commit

Permalink
Fix error when running npm install nunjucks --no-bin-links
Browse files Browse the repository at this point in the history
refs #1073
  • Loading branch information
fdintino committed Feb 23, 2018
1 parent 2c97201 commit db8e3c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ master (unreleased)
-------------------

* Fix regression to make `chokidar` an optional dependency again.
* Fix issue when running `npm install nunjucks` with the `--no-bin-links` flag

3.1.0 (Feb 19 2018)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"codecov": "codecov",
"mocha": "mocha -R spec tests",
"lint": "eslint nunjucks scripts tests",
"postinstall": "postinstall-build src",
"postinstall": "node scripts/postinstall-build.js src",
"test:instrument": "cross-env NODE_ENV=test scripts/bundle.js",
"test:runner": "cross-env NODE_ENV=test scripts/testrunner.js",
"test": "npm run lint && npm run test:instrument && npm run test:runner"
Expand Down
3 changes: 3 additions & 0 deletions scripts/postinstall-build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node
require('postinstall-build/index')();

0 comments on commit db8e3c3

Please sign in to comment.