From 1142035effc3830df5819fa934553b1f671119a5 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Mon, 10 Aug 2026 20:18:27 +0000 Subject: [PATCH] Add repository-wide TypeScript typecheck --- .github/workflows/test.yml | 2 ++ eslint.config.mjs | 2 +- package.json | 1 + tsconfig.eslint.json | 7 ------- tsconfig.json | 2 +- 5 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 tsconfig.eslint.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c72d81e63..813e6e091 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,8 @@ jobs: - run: npm run format-check + - run: npm run typecheck + - run: npm run lint-check - run: npm run test diff --git a/eslint.config.mjs b/eslint.config.mjs index f3f5a8429..d778b8fa3 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -30,7 +30,7 @@ export default defineConfig([ sourceType: "module", parserOptions: { - project: "./tsconfig.eslint.json", + project: "./tsconfig.json", }, }, diff --git a/package.json b/package.json index 72bc1ba28..3d6c2cdb9 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "format-check": "prettier --check **/*.ts", "lint": "eslint --fix **/*.ts", "lint-check": "eslint **/*.ts", + "typecheck": "tsc --noEmit", "package": "ncc build -o dist/main src/main.ts --source-map --license licenses.txt && ncc build -o dist/cleanup src/cleanup.ts --source-map --license licenses.txt", "test": "SKIP_INTEGRATION_TESTS=true jest --detectOpenHandles", "test-integration": "jest --detectOpenHandles 'integration'", diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json deleted file mode 100644 index c1abece6e..000000000 --- a/tsconfig.eslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": [ - "__tests__/**/*.ts", - "src/**/*.ts" - ] -} diff --git a/tsconfig.json b/tsconfig.json index 67ca4c95c..0fe8beb84 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,6 @@ "forceConsistentCasingInFileNames": true, /* Error if requiring a file by a casing different from the casing on disk */ "resolveJsonModule": true }, - "include": ["src/**/*.ts"], + "include": ["__tests__/**/*.ts", "src/**/*.ts"], "exclude": ["**/node_modules/**"] }