Skip to content

Commit 146fdb6

Browse files
Refactor build-ts script to separate husky installation from TypeScript build process
1 parent b6062fb commit 146fdb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
"main": "dist/index.js",
77
"scripts": {
88
"clean": "rimraf dist typings coverage",
9-
"build-ts": "npm run clean && tsc && husky install && husky && chmod +x .husky/pre-commit",
9+
"build-ts": "npm run clean && tsc",
1010
"build-doc": "npm run build-ts && ./node_modules/.bin/jsdoc dist/ -r -R README.md -d docs",
1111
"watch-ts": "npm run clean && tsc -w",
1212
"compile": "tsc",
1313
"prepare": "npm run compile",
14+
"pre-commit": "husky install && husky && chmod +x .husky/pre-commit",
1415
"start": "dist/index.js",
1516
"tslint": "npx tslint -c tslint.json 'src/**/*.ts' --fix",
1617
"test": "jest"

0 commit comments

Comments
 (0)