add npm script for type checking

This commit is contained in:
Pig Fang 2022-02-03 18:00:08 +08:00
parent 69e54d3198
commit 1b55037db6
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2
2 changed files with 2 additions and 2 deletions

View File

@ -95,8 +95,7 @@ jobs:
run: |
yarn lint
yarn fmt:check
yarn tsc -p . --noEmit
yarn tsc -p ./resources/assets/tests --noEmit
yarn type:check
jest:
name: Frontend Tests
runs-on: ubuntu-latest

View File

@ -15,6 +15,7 @@
"lint": "eslint --ext=ts -f=beauty .",
"fmt": "prettier --write resources/assets tools webpack.config.ts",
"fmt:check": "prettier --check resources/assets tools webpack.config.ts",
"type:check": "tsc -p . --noEmit && tsc -p ./resources/assets/tests --noEmit",
"test": "jest",
"build:urls": "ts-node tools/generateUrls.ts"
},