diff --git a/.github/workflows/lint-build-test.yml b/.github/workflows/lint-build-test.yml index 319f02df1..ec7cb35b0 100644 --- a/.github/workflows/lint-build-test.yml +++ b/.github/workflows/lint-build-test.yml @@ -114,6 +114,9 @@ jobs: cache: yarn - run: yarn --immutable - run: yarn build + # Due to our use of Node16 module resolution, we have to build before running type checks. + - name: Check for TypeScript issues + run: yarn lint:ts - name: Require clean working directory shell: bash run: | diff --git a/package.json b/package.json index 74b28f809..89298bd54 100644 --- a/package.json +++ b/package.json @@ -39,8 +39,7 @@ }, "lint-staged": { "*.{js,mjs,cjs,ts,mts,cts}": [ - "eslint --fix", - "bash -c 'yarn lint:ts'" + "eslint --fix" ], "!(CHANGELOG).{json,html,md,yml}": [ "prettier --write"