mirror of
https://github.com/actions/github-script.git
synced 2026-04-07 22:50:04 +00:00
feat(build): use husky for pre-commit
This commit is contained in:
parent
83e4cfe60a
commit
38e28a96bd
3 changed files with 398 additions and 6 deletions
11
package.json
11
package.json
|
|
@ -4,8 +4,7 @@
|
|||
"private": true,
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"build": "ncc build src/main.js",
|
||||
"precommit": "npm run build && git add dist/"
|
||||
"build": "ncc build src/main.js"
|
||||
},
|
||||
"author": "GitHub",
|
||||
"license": "MIT",
|
||||
|
|
@ -14,6 +13,12 @@
|
|||
"@actions/github": "^1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@zeit/ncc": "^0.20.5"
|
||||
"@zeit/ncc": "^0.20.5",
|
||||
"husky": "^4.0.1"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm run build && git add dist/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue