mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
d91ecd2c8b
* build_bazel_rules_typescript renamed to npm_bazel_typescript * build_bazel_rules_karma renamed to npm_bazel_karma * browser_repositories.bzl removed and now using @npm_bazel_karma//:browser_repositories.bzl * includes some fixes for future ts_library devmode es2015 support but some failure still remain when devmode is es2015 so this PR keeps it as es5 using the bazelOptions.devmodeTargetOverride tsconfig setting PR Close #28896
34 lines
1.1 KiB
JSON
34 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,
|
|
"strictNullChecks": true,
|
|
"strictPropertyInitialization": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"moduleResolution": "node",
|
|
"module": "es2015",
|
|
"target": "es2015",
|
|
"lib": ["es2015", "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,
|
|
"devmodeTargetOverride": "es5"
|
|
}
|
|
}
|