Add type check to npm scripts (#4631)

This commit is contained in:
Matt Gibson 2023-02-06 14:40:00 -05:00 committed by GitHub
parent 4f7bd77560
commit 084c89107e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -46,11 +46,7 @@ jobs:
# Tests in apps/ are typechecked when their app is built, so we just do it here for libs/
# See https://bitwarden.atlassian.net/browse/EC-497
- name: Run typechecking
run: |
for p in libs/**/tsconfig.spec.json; do
echo "Typechecking $p"
npx tsc --noEmit --project $p
done
run: npm run test:types
- name: Run tests
run: npm run test

View File

@ -21,6 +21,7 @@
"test": "jest",
"test:watch": "jest --clearCache && jest --watch",
"test:watch:all": "jest --watchAll",
"test:types": "for p in libs/**/tsconfig.spec.json; do echo \"Typechecking $p\"; tsc --noEmit --project $p; done",
"docs:json": "compodoc -p ./tsconfig.json -e json -d .",
"storybook": "npm run docs:json && start-storybook -p 6006",
"build-storybook": "npm run docs:json && build-storybook",