From 0ac7c11b5084e3563ba1c90b05afc39685620ec8 Mon Sep 17 00:00:00 2001 From: Nikita Luchko Date: Tue, 19 Jul 2016 15:05:19 +0200 Subject: [PATCH] Add postinstall npm hook Until https://github.com/npm/npm/issues/3055 is fixed --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cb5a3cb..4cbb838 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "clean": "rimraf build", "test": "mocha ./test/portal_spec.js", "lint": "mocha test/eslint_spec.js", - "prepublish": "cross-env NODE_ENV=production npm run build" + "prepublish": "cross-env NODE_ENV=production npm run build", + "postinstall": "npm run clean && env NODE_ENV=production npm run build" }, "tags": [ "react"