Skip to content

Commit 038318f

Browse files
chore(package): add "lint:types" script for @arethetypeswrong/cli
1 parent 4814738 commit 038318f

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,4 @@ jobs:
3333
run: npm run lint:package
3434

3535
- name: Check types
36-
run: |
37-
npx @arethetypeswrong/cli --pack
38-
if [[ "$(npx @arethetypeswrong/cli --pack -f json | jq '.problems != {}')" == 'true' ]]; then
39-
npx @arethetypeswrong/cli --pack -f json | jq
40-
exit 1
41-
fi
36+
run: npm run lint:types

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
npm run test:ci
22
npm run test:esm
33
npm run lint:package
4+
npm run lint:types
45
npx lint-staged

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"lint:fix": "npm run lint -- --fix",
3636
"lint:package": "publint",
3737
"lint:tsc": "tsc --project tsconfig.test.json",
38+
"lint:types": "npx @arethetypeswrong/cli --pack",
3839
"prepare": "husky",
3940
"prepublishOnly": "npm run build && npm run lint && npm run lint:tsc && npm run lint:package && npm run test:ci",
4041
"size-limit": "size-limit",

0 commit comments

Comments
 (0)