Skip to content

Commit 83ad9ee

Browse files
committed
chore: run tsc in pre-commit script
1 parent f7bdabe commit 83ad9ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
"test:watch": "cross-env NODE_ENV=test BABEL_ENV=test mocha --watch $npm_package_config_mocha",
1818
"test:debug": "cross-env NODE_ENV=test BABEL_ENV=test mocha --inspect-brk $npm_package_config_mocha",
1919
"codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov",
20-
"prepublishOnly": "npm run clean && npm run prettier:check && npm run lint && flow && npm test && npm run build",
20+
"prepublishOnly": "npm run clean && npm run prettier:check && npm run lint && flow && tsc && npm test && npm run build",
2121
"open:coverage": "open coverage/lcov-report/index.html",
2222
"semantic-release": "semantic-release"
2323
},
2424
"husky": {
2525
"hooks": {
26-
"pre-commit": "lint-staged && npm run lint && flow",
26+
"pre-commit": "lint-staged && npm run lint && flow && tsc",
2727
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
2828
"pre-push": "npm test"
2929
}

0 commit comments

Comments
 (0)