Skip to content

Commit

Permalink
Merge pull request #3 from aboutbits/typecheck
Browse files Browse the repository at this point in the history
Add typecheck as npm cmd, pre-commit hook and ci check
  • Loading branch information
lukasvice authored Jun 28, 2022
2 parents c12d484 + 39fefca commit ac4dcc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ set -e
set -o pipefail

npm run lint
npm run typecheck
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run lint
- run: npm run typecheck
- run: npm run test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"build:esm": "tsc --project tsconfig.esnext.json",
"lint": "eslint --ext js,ts,tsx src",
"lint:fix": "npm run lint -- --fix",
"typecheck": "tsc --noEmit",
"test": "jest --verbose --passWithNoTests",
"prepare": "npm run build",
"prepublishOnly": "npm run test && npm run lint",
Expand Down

0 comments on commit ac4dcc5

Please sign in to comment.