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')(); +