mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
25 lines
862 B
JSON
25 lines
862 B
JSON
{
|
|
"schematics": {
|
|
"inject-flags": {
|
|
"version": "20.0.0",
|
|
"description": "Replaces usages of the deprecated InjectFlags enum",
|
|
"factory": "./bundles/inject-flags.cjs#migrate"
|
|
},
|
|
"test-bed-get": {
|
|
"version": "20.0.0",
|
|
"description": "Replaces usages of the deprecated TestBed.get method with TestBed.inject",
|
|
"factory": "./bundles/test-bed-get.cjs#migrate"
|
|
},
|
|
"control-flow-migration": {
|
|
"version": "20.0.0",
|
|
"description": "Converts the entire application to block control flow syntax",
|
|
"factory": "./bundles/control-flow-migration.cjs#migrate",
|
|
"optional": true
|
|
},
|
|
"document-core": {
|
|
"version": "20.0.0",
|
|
"description": "Moves imports of `DOCUMENT` from `@angular/common` to `@angular/core`",
|
|
"factory": "./bundles/document-core.cjs#migrate"
|
|
}
|
|
}
|
|
}
|