From 3f710fa3e449392325340e9c7e80b16b70906c47 Mon Sep 17 00:00:00 2001 From: Pierre-Denis Vanduynslager Date: Sun, 27 Aug 2017 01:38:05 -0400 Subject: [PATCH] chore(githooks): Run `npm install` on post-checkout hook --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 46ee3c3..568e8ea 100644 --- a/package.json +++ b/package.json @@ -112,6 +112,7 @@ "commitmsg": "commitlint -e", "compile": "rimraf lib && babel src --only index.js --source-maps --out-dir lib && rollup -c build/rollup.config.js", "lint": "eslint src test package.json", + "postcheckout": "yarn install || (rimraf && npm install)", "precommit": "npm run compile && npm run lint", "prepare": "npm run compile", "prepublishOnly": "npm run compile",