angular/packages/core/schematics/tsconfig.json
Paul Gschwendtner b763059bdd build: migrate packages/core/schematics to ts_project (#61370)
Migrates `packages/core/schematics` to `ts_project`. As part of this,
this commit cleans up some of the mixed module types and tsconfigs in
the folder. A single tsconfig (and it's test variant) are now used.

For the shipped schematics, we explicitly use the `.cjs` extension, so
that the bundles are properly recognized as CommonJS; even if they are
part of the `type: module` `@angular/core` package.

The `package.json` with `type: commonjs` is removed from
`packages/core/schematics` as it's no longer needed given the explicit
extension & caused issues as schematics are compiled with ESM but are
only later bundled for shipping & some tests as ESM.

PR Close #61370
2025-05-16 11:02:07 +00:00

24 lines
679 B
JSON

{
"compilerOptions": {
"strict": true,
"noImplicitReturns": true,
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
"noPropertyAccessFromIndexSignature": true,
"esModuleInterop": true,
"declaration": true,
"sourceMap": true,
// Schematics are bundled into CommonJS for shipping.
"module": "ESNext",
"moduleResolution": "bundler",
"target": "es2022",
"lib": ["es2019"],
"types": ["node"],
"paths": {
"@angular/core": ["../"],
"@angular/compiler": ["../../compiler"],
"@angular/compiler-cli": ["../../compiler-cli"],
"@angular/compiler-cli/*": ["../../compiler-cli/*"]
}
}
}