Skip to content

Commit 52b94f7

Browse files
rafaelss95mgechev
authored andcommitted
build: lint-staged not being triggered on precommit hook (#676)
1 parent 4dfa89c commit 52b94f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"release": "npm run build && rimraf dist && tsc -p tsconfig-release.json && npm run copy:common && npm run prepare:package && cross-env BUILD_TYPE=prod npm run set:vars",
1616
"build": "rimraf dist && tsc && npm run format:check && npm run lint && npm t",
1717
"copy:common": "ncp README.md dist/README.md",
18+
"precommit": "lint-staged && npm test",
1819
"prepare:package": "cat package.json | ts-node build/package.ts > dist/package.json",
1920
"test": "rimraf dist && tsc && ncp test/fixtures dist/test/fixtures && mocha dist/test --recursive",
2021
"test:watch": "rimraf dist && tsc && ncp test/fixtures dist/test/fixtures && cross-env BUILD_TYPE=dev npm run set:vars && mocha dist/test --watch --recursive",

0 commit comments

Comments
 (0)