1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

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/ # 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 # See https://bitwarden.atlassian.net/browse/EC-497
- name: Run typechecking - name: Run typechecking
run: | run: npm run test:types
for p in libs/**/tsconfig.spec.json; do
echo "Typechecking $p"
npx tsc --noEmit --project $p
done
- name: Run tests - name: Run tests
run: npm run test run: npm run test

View File

@ -21,6 +21,7 @@
"test": "jest", "test": "jest",
"test:watch": "jest --clearCache && jest --watch", "test:watch": "jest --clearCache && jest --watch",
"test:watch:all": "jest --watchAll", "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 .", "docs:json": "compodoc -p ./tsconfig.json -e json -d .",
"storybook": "npm run docs:json && start-storybook -p 6006", "storybook": "npm run docs:json && start-storybook -p 6006",
"build-storybook": "npm run docs:json && build-storybook", "build-storybook": "npm run docs:json && build-storybook",