mirror of
https://github.com/actions/github-script.git
synced 2026-10-15 20:06:55 +00:00
feat(build): use husky for pre-commit
This commit is contained in:
1 parent
83e4cfe60a
commit
38e28a96bd
3 files changed
+398
-6
No files matched your search
+8
-3
@@ -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/"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user