From a7615ef053d8bca85623666cb9a68e4d21f76952 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 13 Jul 2017 14:38:31 +0800 Subject: [PATCH] build: fix postinstall script causing user install errors --- .github/CONTRIBUTING.md | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 555a41fb..f903dc0a 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -41,9 +41,10 @@ After cloning the repo, run: ``` bash $ npm install +& npm run setup ``` -This will also run the `postinstall` script which links two git hooks: +The `setup` script links two git hooks: - `pre-commit`: runs ESLint on staged files. - `commit-msg`: validates commit message format (see below). diff --git a/package.json b/package.json index 430d971c..eb826be3 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "release": "bash build/release.sh", "release:weex": "bash build/release-weex.sh", "release:note": "node build/gen-release-note.js", - "postinstall": "node build/install-hooks.js", + "setup": "node build/install-hooks.js", "commit": "git-cz" }, "repository": {