Skip to content

Commit 74cf7ac

Browse files
author
Sebi Nemeth
committed
refine build with husky
1 parent 2e040e8 commit 74cf7ac

File tree

3 files changed

+28
-194
lines changed

3 files changed

+28
-194
lines changed

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run build
5+
git add -A dist

package-lock.json

Lines changed: 15 additions & 191 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@
66
"types": "./dist/index.d.ts",
77
"scripts": {
88
"build": "tsc --declaration",
9-
"test": "echo \"Error: no test specified\" && exit 1"
9+
"test": "echo \"Error: no test specified\" && exit 1",
10+
"prepare": "husky install"
11+
},
12+
"husky": {
13+
"hooks": {
14+
"pre-commit": "echo hi"
15+
}
1016
},
11-
"pre-commit": "build",
1217
"repository": {
1318
"type": "git",
1419
"url": "git+https://github.com/apicore-engineering/vue-i18n-live-translator-plugin.git"
@@ -27,6 +32,6 @@
2732
},
2833
"devDependencies": {
2934
"@types/lodash": "^4.14.195",
30-
"pre-commit": "^1.2.2"
35+
"husky": "^8.0.0"
3136
}
3237
}

0 commit comments

Comments
 (0)