mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
To make our test output i.e. devmode output more aligned with what we produce in the NPM packages, or to be more aligned with what Angular applications will usually consume, the devmode output is switched from ES5 to ES2015. Additionally various tsconfigs (outside of Bazel) have been updated to match with the other parts of the build. The rules are: ES2015 for test configurations, ES2020 for actual code that will end up being shipped (this includes the IDE-only tsconfigs). PR Close #44505
36 lines
1.1 KiB
JSON
36 lines
1.1 KiB
JSON
/**
|
|
* Root tsconfig file for use building all Angular packages. Note there is no rootDir
|
|
* and therefore any tsconfig in the package directory will need to define its own
|
|
* rootDir.
|
|
*/
|
|
{
|
|
"compilerOptions": {
|
|
"declaration": true,
|
|
"stripInternal": true,
|
|
"noImplicitAny": true,
|
|
"noImplicitOverride": true,
|
|
"strictNullChecks": true,
|
|
"esModuleInterop": true,
|
|
"useUnknownInCatchVariables": false,
|
|
"strict": true,
|
|
"strictPropertyInitialization": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"moduleResolution": "node",
|
|
"module": "es2020",
|
|
"target": "es2020",
|
|
"lib": ["es2020", "dom"],
|
|
"skipLibCheck": true,
|
|
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
|
|
"types": [],
|
|
"experimentalDecorators": true,
|
|
// This is needed due to https://github.com/Microsoft/TypeScript/issues/17516.
|
|
// As tsickle will lower decorators before TS, this is not a problem for our build.
|
|
"emitDecoratorMetadata": true,
|
|
"sourceMap": true,
|
|
"inlineSources": true,
|
|
"importHelpers": true
|
|
},
|
|
"bazelOptions": {
|
|
"suppressTsconfigOverrideWarnings": true
|
|
}
|
|
}
|