From 83ad9ee590a593dc104a8c91f9b421e9a3437be8 Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Tue, 2 Feb 2021 22:18:10 -0600 Subject: [PATCH] chore: run tsc in pre-commit script --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c33548d..77da7ee 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,13 @@ "test:watch": "cross-env NODE_ENV=test BABEL_ENV=test mocha --watch $npm_package_config_mocha", "test:debug": "cross-env NODE_ENV=test BABEL_ENV=test mocha --inspect-brk $npm_package_config_mocha", "codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov", - "prepublishOnly": "npm run clean && npm run prettier:check && npm run lint && flow && npm test && npm run build", + "prepublishOnly": "npm run clean && npm run prettier:check && npm run lint && flow && tsc && npm test && npm run build", "open:coverage": "open coverage/lcov-report/index.html", "semantic-release": "semantic-release" }, "husky": { "hooks": { - "pre-commit": "lint-staged && npm run lint && flow", + "pre-commit": "lint-staged && npm run lint && flow && tsc", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", "pre-push": "npm test" }