Skip to content

Commit a7615ef

Browse files
committed
build: fix postinstall script causing user install errors
1 parent ac3d1ea commit a7615ef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/CONTRIBUTING.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ After cloning the repo, run:
4141

4242
``` bash
4343
$ npm install
44+
& npm run setup
4445
```
4546

46-
This will also run the `postinstall` script which links two git hooks:
47+
The `setup` script links two git hooks:
4748

4849
- `pre-commit`: runs ESLint on staged files.
4950
- `commit-msg`: validates commit message format (see below).

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"release": "bash build/release.sh",
3838
"release:weex": "bash build/release-weex.sh",
3939
"release:note": "node build/gen-release-note.js",
40-
"postinstall": "node build/install-hooks.js",
40+
"setup": "node build/install-hooks.js",
4141
"commit": "git-cz"
4242
},
4343
"repository": {

0 commit comments

Comments
 (0)