From 335c8f224cd62cc2958c5884ee88be83224e1ada Mon Sep 17 00:00:00 2001 From: Sota Yamashtia Date: Sun, 24 Jul 2016 21:14:44 +0900 Subject: [PATCH] Add: package.json: postinstall I added npm-scripts, post-install to run AFTER the package is installed. ref: * https://docs.npmjs.com/misc/scripts --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 0bf487482aa..5e14a1fc906 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "url": "https://github.com/facebookincubator/create-react-app/issues" }, "scripts": { + "postinstall": "npm run build", "start": "node scripts/start.js --debug-template", "build": "node scripts/build.js --debug-template", "create-react-app": "node global-cli/index.js --scripts-version \"$PWD/`npm pack`\""