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
  • Loading branch information
fdintino committed Feb 23, 2018
1 parent 38b19a4 commit eb02308
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
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
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
@@ -0,0 +1,3 @@
#!/usr/bin/env node
require('postinstall-build/index')();

0 comments on commit eb02308

Please sign in to comment.