From f16c01b98bd161a91890f99f8dc75390d4479295 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 13:22:22 -0600 Subject: [PATCH 01/16] Switch to TypeScript project references --- packages/backend-postgres/tsconfig.json | 3 ++- packages/backend-sqlite/tsconfig.json | 3 ++- packages/backend-test/tsconfig.json | 3 ++- packages/cli/tsconfig.json | 3 ++- packages/dashboard/tsconfig.json | 3 ++- packages/openworkflow/tsconfig.json | 2 +- tsconfig.base.json | 21 +++++++++++++++++++ tsconfig.json | 28 ++++++++----------------- 8 files changed, 41 insertions(+), 25 deletions(-) create mode 100644 tsconfig.base.json diff --git a/packages/backend-postgres/tsconfig.json b/packages/backend-postgres/tsconfig.json index 546bce5..18b5d13 100644 --- a/packages/backend-postgres/tsconfig.json +++ b/packages/backend-postgres/tsconfig.json @@ -1,9 +1,10 @@ { - "extends": ["../../tsconfig.json"], + "extends": ["../../tsconfig.base.json"], "compilerOptions": { "rootDir": ".", "outDir": "dist" }, + "references": [{ "path": "../openworkflow" }], "include": ["**/*.ts"], "exclude": ["dist"] } diff --git a/packages/backend-sqlite/tsconfig.json b/packages/backend-sqlite/tsconfig.json index 546bce5..f9367c4 100644 --- a/packages/backend-sqlite/tsconfig.json +++ b/packages/backend-sqlite/tsconfig.json @@ -1,9 +1,10 @@ { - "extends": ["../../tsconfig.json"], + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "dist" }, + "references": [{ "path": "../openworkflow" }], "include": ["**/*.ts"], "exclude": ["dist"] } diff --git a/packages/backend-test/tsconfig.json b/packages/backend-test/tsconfig.json index 546bce5..f9367c4 100644 --- a/packages/backend-test/tsconfig.json +++ b/packages/backend-test/tsconfig.json @@ -1,9 +1,10 @@ { - "extends": ["../../tsconfig.json"], + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "dist" }, + "references": [{ "path": "../openworkflow" }], "include": ["**/*.ts"], "exclude": ["dist"] } diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 546bce5..f9367c4 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -1,9 +1,10 @@ { - "extends": ["../../tsconfig.json"], + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "dist" }, + "references": [{ "path": "../openworkflow" }], "include": ["**/*.ts"], "exclude": ["dist"] } diff --git a/packages/dashboard/tsconfig.json b/packages/dashboard/tsconfig.json index d7a8b1f..02a6d52 100644 --- a/packages/dashboard/tsconfig.json +++ b/packages/dashboard/tsconfig.json @@ -1,6 +1,6 @@ { "extends": [ - "../../tsconfig.json", + "../../tsconfig.base.json", "@tsconfig/vite-react/tsconfig.json" // https://www.npmjs.com/package/@tsconfig/vite-react ], "compilerOptions": { @@ -9,6 +9,7 @@ "@/*": ["./src/*"] } }, + "references": [{ "path": "../cli" }, { "path": "../openworkflow" }], "include": ["**/*.ts", "**/*.tsx"], "exclude": ["dist"] } diff --git a/packages/openworkflow/tsconfig.json b/packages/openworkflow/tsconfig.json index 4e97c9a..3f0a523 100644 --- a/packages/openworkflow/tsconfig.json +++ b/packages/openworkflow/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": ["../../tsconfig.json"], + "extends": ["../../tsconfig.base.json"], "compilerOptions": { "rootDir": ".", "outDir": "dist" diff --git a/tsconfig.base.json b/tsconfig.base.json new file mode 100644 index 0000000..53b9727 --- /dev/null +++ b/tsconfig.base.json @@ -0,0 +1,21 @@ +{ + "extends": [ + "@tsconfig/strictest/tsconfig.json", // https://www.npmjs.com/package/@tsconfig/strictest + "@tsconfig/node22/tsconfig.json" // https://www.npmjs.com/package/@tsconfig/node22 + ], + "compilerOptions": { + "rootDir": ".", + "outDir": "dist", + "customConditions": ["development"], + + "composite": true, + "declaration": true, + "sourceMap": true, + "declarationMap": true + }, + "include": ["**/*.ts"], + + // temporary - run `npm run typecheck` from the package root until we migrate + // our typechecks over to turbo + "exclude": ["packages/dashboard", "dist"] +} diff --git a/tsconfig.json b/tsconfig.json index 53b9727..d8679e3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,21 +1,11 @@ { - "extends": [ - "@tsconfig/strictest/tsconfig.json", // https://www.npmjs.com/package/@tsconfig/strictest - "@tsconfig/node22/tsconfig.json" // https://www.npmjs.com/package/@tsconfig/node22 - ], - "compilerOptions": { - "rootDir": ".", - "outDir": "dist", - "customConditions": ["development"], - - "composite": true, - "declaration": true, - "sourceMap": true, - "declarationMap": true - }, - "include": ["**/*.ts"], - - // temporary - run `npm run typecheck` from the package root until we migrate - // our typechecks over to turbo - "exclude": ["packages/dashboard", "dist"] + "files": [], + "references": [ + { "path": "./packages/openworkflow" }, + { "path": "./packages/backend-postgres" }, + { "path": "./packages/backend-sqlite" }, + { "path": "./packages/backend-test" }, + { "path": "./packages/cli" }, + { "path": "./packages/dashboard" } + ] } From e9b7cdb1f8d92ea663a5d010d5049e613c1b0dee Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 13:25:35 -0600 Subject: [PATCH 02/16] Clean up "development" imports --- packages/backend-postgres/package.json | 1 - packages/backend-sqlite/package.json | 1 - packages/backend-test/package.json | 1 - packages/cli/package.json | 2 -- packages/openworkflow/package.json | 2 -- tsconfig.base.json | 1 - 6 files changed, 8 deletions(-) diff --git a/packages/backend-postgres/package.json b/packages/backend-postgres/package.json index b814094..b42e762 100644 --- a/packages/backend-postgres/package.json +++ b/packages/backend-postgres/package.json @@ -5,7 +5,6 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "development": "./index.ts", "default": "./dist/index.js" } }, diff --git a/packages/backend-sqlite/package.json b/packages/backend-sqlite/package.json index 35fc7ce..c028fe0 100644 --- a/packages/backend-sqlite/package.json +++ b/packages/backend-sqlite/package.json @@ -5,7 +5,6 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "development": "./index.ts", "default": "./dist/index.js" } }, diff --git a/packages/backend-test/package.json b/packages/backend-test/package.json index e840b83..379dd0e 100644 --- a/packages/backend-test/package.json +++ b/packages/backend-test/package.json @@ -5,7 +5,6 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "development": "./index.ts", "default": "./dist/index.js" } }, diff --git a/packages/cli/package.json b/packages/cli/package.json index 538d132..653e393 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -5,12 +5,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "development": "./index.ts", "default": "./dist/index.js" }, "./internal": { "types": "./dist/internal.d.ts", - "development": "./internal.ts", "default": "./dist/internal.js" } }, diff --git a/packages/openworkflow/package.json b/packages/openworkflow/package.json index d24634a..a73617a 100644 --- a/packages/openworkflow/package.json +++ b/packages/openworkflow/package.json @@ -28,12 +28,10 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "development": "./index.ts", "default": "./dist/index.js" }, "./internal": { "types": "./dist/internal.d.ts", - "development": "./internal.ts", "default": "./dist/internal.js" } }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 53b9727..1bc68af 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -6,7 +6,6 @@ "compilerOptions": { "rootDir": ".", "outDir": "dist", - "customConditions": ["development"], "composite": true, "declaration": true, From 9cccce5f841b487e464040bb14ea0740b1d726e2 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 13:42:41 -0600 Subject: [PATCH 03/16] Switch benchmarks and examples to use ts project references --- benchmarks/basic/tsconfig.json | 2 +- examples/basic/tsconfig.json | 2 +- examples/declare-workflow/tsconfig.json | 2 +- examples/with-schema-validation/tsconfig.json | 2 +- examples/workflow-discovery/tsconfig.json | 2 +- tsconfig.json | 5 +++++ 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/benchmarks/basic/tsconfig.json b/benchmarks/basic/tsconfig.json index 546bce5..a3a0bac 100644 --- a/benchmarks/basic/tsconfig.json +++ b/benchmarks/basic/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": ["../../tsconfig.json"], + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "dist" diff --git a/examples/basic/tsconfig.json b/examples/basic/tsconfig.json index 546bce5..a3a0bac 100644 --- a/examples/basic/tsconfig.json +++ b/examples/basic/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": ["../../tsconfig.json"], + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "dist" diff --git a/examples/declare-workflow/tsconfig.json b/examples/declare-workflow/tsconfig.json index 546bce5..a3a0bac 100644 --- a/examples/declare-workflow/tsconfig.json +++ b/examples/declare-workflow/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": ["../../tsconfig.json"], + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "dist" diff --git a/examples/with-schema-validation/tsconfig.json b/examples/with-schema-validation/tsconfig.json index 546bce5..a3a0bac 100644 --- a/examples/with-schema-validation/tsconfig.json +++ b/examples/with-schema-validation/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": ["../../tsconfig.json"], + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "dist" diff --git a/examples/workflow-discovery/tsconfig.json b/examples/workflow-discovery/tsconfig.json index 9950aca..cd36d77 100644 --- a/examples/workflow-discovery/tsconfig.json +++ b/examples/workflow-discovery/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.json", + "extends": "../../tsconfig.base.json", "compilerOptions": { "noEmit": true }, diff --git a/tsconfig.json b/tsconfig.json index d8679e3..89cab00 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,11 @@ { "files": [], "references": [ + { "path": "./benchmarks/basic" }, + { "path": "./examples/basic" }, + { "path": "./examples/declare-workflow" }, + { "path": "./examples/with-schema-validation" }, + { "path": "./examples/workflow-discovery" }, { "path": "./packages/openworkflow" }, { "path": "./packages/backend-postgres" }, { "path": "./packages/backend-sqlite" }, From 386bc4e41b44d97cfd9b9bad4ba88f10a126c858 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:14:10 -0600 Subject: [PATCH 04/16] Remove rootDir from tsconfigs --- benchmarks/basic/tsconfig.json | 1 - examples/basic/tsconfig.json | 1 - examples/declare-workflow/tsconfig.json | 1 - examples/with-schema-validation/tsconfig.json | 1 - examples/workflow-discovery/tsconfig.json | 2 +- packages/backend-postgres/tsconfig.json | 1 - packages/backend-sqlite/tsconfig.json | 1 - packages/backend-test/tsconfig.json | 1 - packages/cli/tsconfig.json | 1 - packages/openworkflow/tsconfig.json | 1 - tsconfig.base.json | 1 - 11 files changed, 1 insertion(+), 11 deletions(-) diff --git a/benchmarks/basic/tsconfig.json b/benchmarks/basic/tsconfig.json index a3a0bac..e116aae 100644 --- a/benchmarks/basic/tsconfig.json +++ b/benchmarks/basic/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": ".", "outDir": "dist" }, "include": ["**/*.ts"], diff --git a/examples/basic/tsconfig.json b/examples/basic/tsconfig.json index a3a0bac..e116aae 100644 --- a/examples/basic/tsconfig.json +++ b/examples/basic/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": ".", "outDir": "dist" }, "include": ["**/*.ts"], diff --git a/examples/declare-workflow/tsconfig.json b/examples/declare-workflow/tsconfig.json index a3a0bac..e116aae 100644 --- a/examples/declare-workflow/tsconfig.json +++ b/examples/declare-workflow/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": ".", "outDir": "dist" }, "include": ["**/*.ts"], diff --git a/examples/with-schema-validation/tsconfig.json b/examples/with-schema-validation/tsconfig.json index a3a0bac..e116aae 100644 --- a/examples/with-schema-validation/tsconfig.json +++ b/examples/with-schema-validation/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": ".", "outDir": "dist" }, "include": ["**/*.ts"], diff --git a/examples/workflow-discovery/tsconfig.json b/examples/workflow-discovery/tsconfig.json index cd36d77..e116aae 100644 --- a/examples/workflow-discovery/tsconfig.json +++ b/examples/workflow-discovery/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "noEmit": true + "outDir": "dist" }, "include": ["**/*.ts"], "exclude": ["dist"] diff --git a/packages/backend-postgres/tsconfig.json b/packages/backend-postgres/tsconfig.json index 18b5d13..b3db5ed 100644 --- a/packages/backend-postgres/tsconfig.json +++ b/packages/backend-postgres/tsconfig.json @@ -1,7 +1,6 @@ { "extends": ["../../tsconfig.base.json"], "compilerOptions": { - "rootDir": ".", "outDir": "dist" }, "references": [{ "path": "../openworkflow" }], diff --git a/packages/backend-sqlite/tsconfig.json b/packages/backend-sqlite/tsconfig.json index f9367c4..1f06722 100644 --- a/packages/backend-sqlite/tsconfig.json +++ b/packages/backend-sqlite/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": ".", "outDir": "dist" }, "references": [{ "path": "../openworkflow" }], diff --git a/packages/backend-test/tsconfig.json b/packages/backend-test/tsconfig.json index f9367c4..1f06722 100644 --- a/packages/backend-test/tsconfig.json +++ b/packages/backend-test/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": ".", "outDir": "dist" }, "references": [{ "path": "../openworkflow" }], diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index f9367c4..1f06722 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": ".", "outDir": "dist" }, "references": [{ "path": "../openworkflow" }], diff --git a/packages/openworkflow/tsconfig.json b/packages/openworkflow/tsconfig.json index 3f0a523..4e8ee9d 100644 --- a/packages/openworkflow/tsconfig.json +++ b/packages/openworkflow/tsconfig.json @@ -1,7 +1,6 @@ { "extends": ["../../tsconfig.base.json"], "compilerOptions": { - "rootDir": ".", "outDir": "dist" }, "include": ["**/*.ts"], diff --git a/tsconfig.base.json b/tsconfig.base.json index 1bc68af..5145ee8 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -4,7 +4,6 @@ "@tsconfig/node22/tsconfig.json" // https://www.npmjs.com/package/@tsconfig/node22 ], "compilerOptions": { - "rootDir": ".", "outDir": "dist", "composite": true, From 9220391226f42b37f25ffc83e02591215898f446 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:15:01 -0600 Subject: [PATCH 05/16] Remove outDir from base tsconfig --- tsconfig.base.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/tsconfig.base.json b/tsconfig.base.json index 5145ee8..6c057bc 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -4,8 +4,6 @@ "@tsconfig/node22/tsconfig.json" // https://www.npmjs.com/package/@tsconfig/node22 ], "compilerOptions": { - "outDir": "dist", - "composite": true, "declaration": true, "sourceMap": true, From 77f99e6b86a3d772b8cfa396c2b8d26c53cb3f90 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:16:28 -0600 Subject: [PATCH 06/16] Remove test files from tsconfig exclusion --- packages/openworkflow/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/openworkflow/tsconfig.json b/packages/openworkflow/tsconfig.json index 4e8ee9d..1958d50 100644 --- a/packages/openworkflow/tsconfig.json +++ b/packages/openworkflow/tsconfig.json @@ -4,5 +4,5 @@ "outDir": "dist" }, "include": ["**/*.ts"], - "exclude": ["**/*.test.ts", "dist"] + "exclude": ["dist"] } From b17908efd3704c030a4413ce7ecfe1d8970e4834 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:22:54 -0600 Subject: [PATCH 07/16] Add ts project references doc link --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index 89cab00..48780cf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,5 @@ { + // https://www.typescriptlang.org/docs/handbook/project-references.html#overall-structure "files": [], "references": [ { "path": "./benchmarks/basic" }, From b0fa7b758baf7b01cab9181ea27ba59cb64c2981 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:24:39 -0600 Subject: [PATCH 08/16] Add project-wide settings to root tsconfig --- tsconfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 48780cf..f78a459 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,5 +13,9 @@ { "path": "./packages/backend-test" }, { "path": "./packages/cli" }, { "path": "./packages/dashboard" } - ] + ], + + // project-wide settings for configs, workflows, etc. + "extends": "./tsconfig.base.json", + "include": ["openworkflow/**/*.ts", "*.config.ts"] } From f3a3597cedce9e79bd549295a495531ef8eae54e Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:26:22 -0600 Subject: [PATCH 09/16] Set dashboard tsconfig to noEmit to resolve TS6310 --- packages/dashboard/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/dashboard/tsconfig.json b/packages/dashboard/tsconfig.json index 02a6d52..22717c5 100644 --- a/packages/dashboard/tsconfig.json +++ b/packages/dashboard/tsconfig.json @@ -4,6 +4,7 @@ "@tsconfig/vite-react/tsconfig.json" // https://www.npmjs.com/package/@tsconfig/vite-react ], "compilerOptions": { + "noEmit": false, // TS6310 "types": ["vite/client"], "paths": { "@/*": ["./src/*"] From 7fe12f61566f63b59609e9c6b8e85b8a83dd6690 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:30:27 -0600 Subject: [PATCH 10/16] Add dist outDir/exclude to project tsconfig --- tsconfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index f78a459..29439e0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,5 +17,9 @@ // project-wide settings for configs, workflows, etc. "extends": "./tsconfig.base.json", - "include": ["openworkflow/**/*.ts", "*.config.ts"] + "compilerOptions": { + "outDir": "dist" + }, + "include": ["openworkflow/**/*.ts", "*.config.ts"], + "exclude": ["dist"] } From 8c3706fe6572fcf9690295bfb98c79c6ee31bda0 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:46:55 -0600 Subject: [PATCH 11/16] Add tsconfig.test.json for references workaround --- packages/openworkflow/tsconfig.json | 5 ++++- packages/openworkflow/tsconfig.test.json | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 packages/openworkflow/tsconfig.test.json diff --git a/packages/openworkflow/tsconfig.json b/packages/openworkflow/tsconfig.json index 1958d50..4219e97 100644 --- a/packages/openworkflow/tsconfig.json +++ b/packages/openworkflow/tsconfig.json @@ -4,5 +4,8 @@ "outDir": "dist" }, "include": ["**/*.ts"], - "exclude": ["dist"] + "exclude": [ + "dist", + "**/*.test.ts" // see note in ./tsconfig.test.json + ] } diff --git a/packages/openworkflow/tsconfig.test.json b/packages/openworkflow/tsconfig.test.json new file mode 100644 index 0000000..ae2805c --- /dev/null +++ b/packages/openworkflow/tsconfig.test.json @@ -0,0 +1,11 @@ +// this config is a workaround to add backend-postgres as a reference for our +// test files without a circular reference in the main tsconfig.json +{ + "extends": ["./tsconfig.json"], + "compilerOptions": { + "outDir": "dist" + }, + "references": [{ "path": "." }, { "path": "../backend-postgres" }], + "include": ["**/*.test.ts"], + "exclude": ["dist"] +} From 8286045e48d9aacf1be276676ab575fc38d9112e Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:48:40 -0600 Subject: [PATCH 12/16] Disable allowImportingTsExtensions in dashboard tsconfig --- packages/dashboard/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/dashboard/tsconfig.json b/packages/dashboard/tsconfig.json index 22717c5..682e11d 100644 --- a/packages/dashboard/tsconfig.json +++ b/packages/dashboard/tsconfig.json @@ -5,6 +5,7 @@ ], "compilerOptions": { "noEmit": false, // TS6310 + "allowImportingTsExtensions": false, // TS5096, caused by disabling noEmit "types": ["vite/client"], "paths": { "@/*": ["./src/*"] From 0cdeaff0e578d781afba60ae18b2de2f94959673 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:51:21 -0600 Subject: [PATCH 13/16] Include openworkflow package tests in root tsconfig --- tsconfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 29439e0..6f7a6af 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,6 +20,10 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["openworkflow/**/*.ts", "*.config.ts"], + "include": [ + "openworkflow/**/*.ts", + "*.config.ts", + "packages/openworkflow/**/*.test.ts" // needed to work with packages/openworkflow/tsconfig.test.json + ], "exclude": ["dist"] } From c9226dd44de241b010260e45d158ddf60828c6ad Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:52:33 -0600 Subject: [PATCH 14/16] Add exclusion for test suite files in coverage configuration --- vitest.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vitest.config.ts b/vitest.config.ts index 52be040..f1ae95b 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -7,6 +7,7 @@ export default defineConfig({ coverage: { include: ["packages/**/*.ts"], exclude: [ + "**/*.testsuite.ts", "**/dist/**", "**/scripts/*.ts", "vitest.global-setup.ts", From 7b06f13107bba555d4d258ab52f2378d567632f8 Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 15:54:25 -0600 Subject: [PATCH 15/16] Remove include and exclude from base tsconfig --- tsconfig.base.json | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tsconfig.base.json b/tsconfig.base.json index 6c057bc..eb5c04e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -8,10 +8,5 @@ "declaration": true, "sourceMap": true, "declarationMap": true - }, - "include": ["**/*.ts"], - - // temporary - run `npm run typecheck` from the package root until we migrate - // our typechecks over to turbo - "exclude": ["packages/dashboard", "dist"] + } } From fc098d745b385e4dc68da2089ec292b2155b9eeb Mon Sep 17 00:00:00 2001 From: James Martinez Date: Tue, 20 Jan 2026 16:01:55 -0600 Subject: [PATCH 16/16] build before lint --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9b596d0..3e7a61a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ ], "scripts": { "build": "turbo build", - "ci": "npm run format && npm run lint && npm run typecheck && npm run build && npm run test:coverage", + "ci": "npm run format && npm run build && npm run lint && npm run typecheck && npm run test:coverage", "format": "prettier --check . --ignore-path .gitignore --ignore-path .prettierignore", "format:fix": "prettier --write . --ignore-path .gitignore --ignore-path .prettierignore", "knip": "knip",