From db8e3c39e14fc992c387a951f9e3cf3ac9feedc0 Mon Sep 17 00:00:00 2001 From: Frankie Dintino Date: Fri, 23 Feb 2018 14:17:08 -0500 Subject: [PATCH] Fix error when running npm install nunjucks --no-bin-links refs #1073 --- CHANGELOG.md | 1 + package.json | 2 +- scripts/postinstall-build.js | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 scripts/postinstall-build.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 48f7c5bb..7a003fb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) ------------------- diff --git a/package.json b/package.json index f6206e5c..a00906dc 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/scripts/postinstall-build.js b/scripts/postinstall-build.js new file mode 100755 index 00000000..010954f4 --- /dev/null +++ b/scripts/postinstall-build.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node +require('postinstall-build/index')(); +