-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20275 from emberjs/stable-types-infra
[FEATURE] Stable types infra
- Loading branch information
Showing
12 changed files
with
578 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
* text=auto | ||
|
||
# Tell GH to render all tsconfigs in the tsconfig dir correctly. | ||
tsconfig/*.json linguist-language=JSON-with-Comments |
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 |
---|---|---|
@@ -1,39 +1,9 @@ | ||
{ | ||
"extends": "./tsconfig/compiler-options.json", | ||
"compilerOptions": { | ||
// Compilation Configuration | ||
"target": "es2017", | ||
"sourceMap": true, | ||
"outDir": "dist", | ||
"baseUrl": "packages", | ||
"rootDir": "packages", | ||
|
||
// Environment Configuration | ||
"experimentalDecorators": true, | ||
"moduleResolution": "node", | ||
|
||
// Enhance Strictness | ||
"strict": true, | ||
"noImplicitReturns": true, | ||
"allowUnreachableCode": false, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noUnusedLocals": true, | ||
"noUncheckedIndexedAccess": true, | ||
"noUnusedParameters": true, | ||
"esModuleInterop": false, | ||
"allowSyntheticDefaultImports": false, | ||
|
||
"newLine": "LF", | ||
"noEmit": true, | ||
|
||
"allowJs": true, | ||
"checkJs": false, | ||
|
||
"paths": { | ||
"backburner": ["../node_modules/backburner.js/dist/backburner.d.ts"] | ||
} | ||
"noEmit": true | ||
}, | ||
|
||
"include": ["packages/**/*.ts"], | ||
|
||
"exclude": ["dist", "node_modules", "tmp", "types"] | ||
} |
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,35 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"compilerOptions": { | ||
// Compilation Configuration | ||
"target": "es2019", | ||
"sourceMap": true, | ||
"baseUrl": "../packages", | ||
"rootDir": "../packages", | ||
|
||
// Environment Configuration | ||
"experimentalDecorators": true, | ||
"moduleResolution": "node", | ||
|
||
// Enhance Strictness | ||
"strict": true, | ||
"noImplicitReturns": true, | ||
"allowUnreachableCode": false, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noUnusedLocals": true, | ||
"noUncheckedIndexedAccess": true, | ||
"noUnusedParameters": true, | ||
"esModuleInterop": false, | ||
"allowSyntheticDefaultImports": false, | ||
|
||
"newLine": "LF", | ||
|
||
"allowJs": true, | ||
"checkJs": false, | ||
|
||
"paths": { | ||
"backburner": ["../node_modules/backburner.js/dist/backburner.d.ts"], | ||
"require": ["./loader/lib/index.d.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"extends": "./compiler-options.json", | ||
"compilerOptions": { | ||
"noEmit": false, | ||
"declaration": true, | ||
"emitDeclarationOnly": true, | ||
// It'd be really nice to be able to supply sourcemaps, and at some point we | ||
// will be able to by using e.g. rollup-plugin-ts once we solve other issues | ||
// blocking that in our publishing pipeline by way of circular and repeated | ||
// dependencies in the graph, but at the moment we are using `magic-string` | ||
// to post-process these to add `declare module` declarations (see the | ||
// `types/publish.mjs` script or details), and that doesn't support updating | ||
// *existing* source maps, unfortunately. | ||
"declarationMap": false, | ||
"declarationDir": "../types/stable" | ||
}, | ||
"include": [ | ||
// Note: these will also pull on all their transitive dependencies, so we | ||
// will end up publishing the (private!) types for packages not named here | ||
// until we update the actual internals to avoid referencing them! | ||
"../packages/@ember/**/*", | ||
"../packages/ember/**/*", | ||
"../packages/@glimmer/**/*" | ||
], | ||
"exclude": [ | ||
"../**/type-tests", | ||
"../**/tests", | ||
"../**/internal-test-helpers" | ||
] | ||
} |
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
Oops, something went wrong.