-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
web/design
a separate TypeScript project (#47694)
* Make `web/design` a separate TypeScript project * Fix compile errors It seems that making `web/design` a separate project slightly changes the behavior of type inference
- Loading branch information
Showing
10 changed files
with
78 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowSyntheticDefaultImports": true, | ||
"allowJs": true, | ||
"baseUrl": ".", | ||
"useDefineForClassFields": true, | ||
"esModuleInterop": true, | ||
"importHelpers": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"isolatedModules": true, | ||
"target": "esnext", | ||
"module": "esnext", | ||
"moduleResolution": "bundler", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"jsx": "react-jsx", | ||
"strictBindCallApply": true, | ||
"noEmitHelpers": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"sourceMap": false, | ||
"paths": { | ||
"shared/*": ["web/packages/shared/*"], | ||
"design/*": ["web/packages/design/src/*"], | ||
"design": ["web/packages/design/src/"], | ||
"teleport/*": ["web/packages/teleport/src/*"], | ||
"teleport": ["web/packages/teleport/src/"], | ||
"teleterm/*": ["web/packages/teleterm/src/*"], | ||
"e-teleport/*": ["e/web/teleport/src/*"], | ||
"gen-proto-js/*": ["gen/proto/js/*"], | ||
"gen-proto-ts/*": ["gen/proto/ts/*"], | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "build.assets/.cache/ts", | ||
"composite": true, | ||
"module": "nodenext", | ||
"moduleResolution": "nodenext", | ||
"emitDeclarationOnly": true, | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"moduleResolution": "bundler", | ||
"allowSyntheticDefaultImports": true | ||
}, | ||
"include": [ | ||
"e/web/**/*.mts", | ||
"web/**/*.mts" | ||
"web/**/*.mts", | ||
"web/packages/build/vite", | ||
"web/packages/teleterm/csp.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "../../../tsconfig.base.json", | ||
"include": ["src", "@types", "../../../web/@types"], | ||
"compilerOptions": { | ||
"composite": true, | ||
"outDir": "../../../build.assets/.cache/ts/design", | ||
"emitDeclarationOnly": true, | ||
"declarationMap": true, | ||
} | ||
} |