-
Notifications
You must be signed in to change notification settings - Fork 31
ts refactor #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ts refactor #168
Changes from all commits
f16c01b
e9b7cdb
9cccce5
386bc4e
9220391
77f99e6
b17908e
b0fa7b7
f3a3597
7fe12f6
8c3706f
8286045
0cdeaff
c9226dd
7b06f13
fc098d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,6 @@ | ||||||
| { | ||||||
| "extends": ["../../tsconfig.json"], | ||||||
| "extends": "../../tsconfig.base.json", | ||||||
|
||||||
| "extends": "../../tsconfig.base.json", | |
| "extends": ["../../tsconfig.base.json"], |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,6 @@ | ||||||
| { | ||||||
| "extends": ["../../tsconfig.json"], | ||||||
| "extends": "../../tsconfig.base.json", | ||||||
|
||||||
| "extends": "../../tsconfig.base.json", | |
| "extends": ["../../tsconfig.base.json"], |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,6 @@ | ||||||
| { | ||||||
| "extends": ["../../tsconfig.json"], | ||||||
| "extends": "../../tsconfig.base.json", | ||||||
|
||||||
| "extends": "../../tsconfig.base.json", | |
| "extends": ["../../tsconfig.base.json"], |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||
| { | ||||||
| "extends": "../../tsconfig.json", | ||||||
| "extends": "../../tsconfig.base.json", | ||||||
|
||||||
| "extends": "../../tsconfig.base.json", | |
| "extends": ["../../tsconfig.base.json"], |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| { | ||
| "extends": ["../../tsconfig.json"], | ||
| "extends": ["../../tsconfig.base.json"], | ||
| "compilerOptions": { | ||
| "rootDir": ".", | ||
| "outDir": "dist" | ||
| }, | ||
| "references": [{ "path": "../openworkflow" }], | ||
| "include": ["**/*.ts"], | ||
| "exclude": ["dist"] | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,9 +1,9 @@ | ||||||
| { | ||||||
| "extends": ["../../tsconfig.json"], | ||||||
| "extends": "../../tsconfig.base.json", | ||||||
|
||||||
| "extends": "../../tsconfig.base.json", | |
| "extends": ["../../tsconfig.base.json"], |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,9 +1,9 @@ | ||||||
| { | ||||||
| "extends": ["../../tsconfig.json"], | ||||||
| "extends": "../../tsconfig.base.json", | ||||||
|
||||||
| "extends": "../../tsconfig.base.json", | |
| "extends": ["../../tsconfig.base.json"], |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,9 +1,9 @@ | ||||||
| { | ||||||
| "extends": ["../../tsconfig.json"], | ||||||
| "extends": "../../tsconfig.base.json", | ||||||
|
||||||
| "extends": "../../tsconfig.base.json", | |
| "extends": ["../../tsconfig.base.json"], |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,17 @@ | ||
| { | ||
| "extends": [ | ||
| "../../tsconfig.json", | ||
| "../../tsconfig.base.json", | ||
| "@tsconfig/vite-react/tsconfig.json" // https://www.npmjs.com/package/@tsconfig/vite-react | ||
| ], | ||
| "compilerOptions": { | ||
| "noEmit": false, // TS6310 | ||
| "allowImportingTsExtensions": false, // TS5096, caused by disabling noEmit | ||
| "types": ["vite/client"], | ||
| "paths": { | ||
| "@/*": ["./src/*"] | ||
| } | ||
| }, | ||
| "references": [{ "path": "../cli" }, { "path": "../openworkflow" }], | ||
| "include": ["**/*.ts", "**/*.tsx"], | ||
| "exclude": ["dist"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| { | ||
| "extends": ["../../tsconfig.json"], | ||
| "extends": ["../../tsconfig.base.json"], | ||
| "compilerOptions": { | ||
| "rootDir": ".", | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["**/*.ts"], | ||
| "exclude": ["**/*.test.ts", "dist"] | ||
| "exclude": [ | ||
| "dist", | ||
| "**/*.test.ts" // see note in ./tsconfig.test.json | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "extends": [ | ||
| "@tsconfig/strictest/tsconfig.json", // https://www.npmjs.com/package/@tsconfig/strictest | ||
| "@tsconfig/node22/tsconfig.json" // https://www.npmjs.com/package/@tsconfig/node22 | ||
| ], | ||
| "compilerOptions": { | ||
| "composite": true, | ||
| "declaration": true, | ||
| "sourceMap": true, | ||
| "declarationMap": true | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,29 @@ | ||
| { | ||
| "extends": [ | ||
| "@tsconfig/strictest/tsconfig.json", // https://www.npmjs.com/package/@tsconfig/strictest | ||
| "@tsconfig/node22/tsconfig.json" // https://www.npmjs.com/package/@tsconfig/node22 | ||
| // https://www.typescriptlang.org/docs/handbook/project-references.html#overall-structure | ||
| "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" }, | ||
| { "path": "./packages/backend-test" }, | ||
| { "path": "./packages/cli" }, | ||
| { "path": "./packages/dashboard" } | ||
| ], | ||
| "compilerOptions": { | ||
| "rootDir": ".", | ||
| "outDir": "dist", | ||
| "customConditions": ["development"], | ||
|
|
||
| "composite": true, | ||
| "declaration": true, | ||
| "sourceMap": true, | ||
| "declarationMap": true | ||
| // project-wide settings for configs, workflows, etc. | ||
| "extends": "./tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["**/*.ts"], | ||
|
|
||
| // temporary - run `npm run typecheck` from the package root until we migrate | ||
| // our typechecks over to turbo | ||
| "exclude": ["packages/dashboard", "dist"] | ||
| "include": [ | ||
| "openworkflow/**/*.ts", | ||
| "*.config.ts", | ||
| "packages/openworkflow/**/*.test.ts" // needed to work with packages/openworkflow/tsconfig.test.json | ||
| ], | ||
| "exclude": ["dist"] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent format for "extends" field across the project. Some tsconfig files use a string format while others use an array format. For consistency, consider using the same format across all tsconfig files (preferably array format to allow for easier future additions).