From da9e5fcbb2782845fd14250ce696afd3c8971d67 Mon Sep 17 00:00:00 2001 From: Tim Martin Date: Sun, 2 Dec 2018 12:20:06 -0500 Subject: [PATCH] Dev setup uses prepare instead of postinstall We want the dev setup script to use the prepare trigger instead of postinstall. This will prevent folk who install the package as a node module running into grunt errors. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1af91135e..b49c92270 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "browser": "src/crafty.js", "scripts": { "test": "grunt check", - "postinstall": "(node -e \"process.env.NODE_ENV !== 'production' && process.exit()\" && grunt copy:lib) || node -v", + "prepare": "(node -e \"process.env.NODE_ENV !== 'production' && process.exit()\" && grunt copy:lib) || node -v", "precommit": "pretty-quick --staged" }, "browserify": {