@openrewrite/recipes-angular 1.37.0 → 1.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/migration/remove-default-project.d.ts +1 -0
- package/dist/migration/remove-default-project.d.ts.map +1 -1
- package/dist/migration/remove-default-project.js +3 -1
- package/dist/migration/remove-default-project.js.map +1 -1
- package/dist/migration/upgrade-to-angular-13.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-13.js +1 -3
- package/dist/migration/upgrade-to-angular-13.js.map +1 -1
- package/dist/migration/upgrade-to-angular-14.d.ts.map +1 -1
- package/dist/migration/upgrade-to-angular-14.js +3 -0
- package/dist/migration/upgrade-to-angular-14.js.map +1 -1
- package/package.json +1 -1
- package/src/migration/remove-default-project.ts +3 -1
- package/src/migration/upgrade-to-angular-13.ts +1 -3
- package/src/migration/upgrade-to-angular-14.ts +3 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExecutionContext, Recipe, TreeVisitor } from "@openrewrite/rewrite";
|
|
2
|
+
/** @see https://github.com/angular/angular-cli/blob/14.2.x/packages/schematics/angular/migrations/update-14/remove-default-project-option.ts */
|
|
2
3
|
export declare class RemoveDefaultProject extends Recipe {
|
|
3
4
|
readonly name = "org.openrewrite.angular.migration.remove-default-project";
|
|
4
5
|
readonly displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-default-project.d.ts","sourceRoot":"","sources":["../../src/migration/remove-default-project.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAG3E,qBAAa,oBAAqB,SAAQ,MAAM;IAC5C,QAAQ,CAAC,IAAI,8DAA8D;IAC3E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAiD;IAC7E,QAAQ,CAAC,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"remove-default-project.d.ts","sourceRoot":"","sources":["../../src/migration/remove-default-project.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAG3E,gJAAgJ;AAChJ,qBAAa,oBAAqB,SAAQ,MAAM;IAC5C,QAAQ,CAAC,IAAI,8DAA8D;IAC3E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAiD;IAC7E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAEc;IAEpC,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;CAS9D"}
|
|
@@ -17,13 +17,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.RemoveDefaultProject = void 0;
|
|
18
18
|
const rewrite_1 = require("@openrewrite/rewrite");
|
|
19
19
|
const json_1 = require("@openrewrite/rewrite/json");
|
|
20
|
+
/** @see https://github.com/angular/angular-cli/blob/14.2.x/packages/schematics/angular/migrations/update-14/remove-default-project-option.ts */
|
|
20
21
|
class RemoveDefaultProject extends rewrite_1.Recipe {
|
|
21
22
|
constructor() {
|
|
22
23
|
super(...arguments);
|
|
23
24
|
this.name = "org.openrewrite.angular.migration.remove-default-project";
|
|
24
25
|
this.displayName = "Remove `defaultProject` from `angular.json`";
|
|
25
26
|
this.description = "Removes the deprecated `defaultProject` property from `angular.json`. " +
|
|
26
|
-
"The `defaultProject` option was deprecated in Angular
|
|
27
|
+
"The `defaultProject` option was deprecated in Angular 14, whose `ng update` removes it, and the CLI infers the " +
|
|
28
|
+
"default project from the workspace.";
|
|
27
29
|
}
|
|
28
30
|
editor() {
|
|
29
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-default-project.js","sourceRoot":"","sources":["../../src/migration/remove-default-project.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAEH,kDAA2E;AAC3E,oDAAsE;AAEtE,MAAa,oBAAqB,SAAQ,gBAAM;IAAhD;;QACa,SAAI,GAAG,0DAA0D,CAAC;QAClE,gBAAW,GAAW,6CAA6C,CAAC;QACpE,gBAAW,GAAW,wEAAwE;YACnG,
|
|
1
|
+
{"version":3,"file":"remove-default-project.js","sourceRoot":"","sources":["../../src/migration/remove-default-project.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAEH,kDAA2E;AAC3E,oDAAsE;AAEtE,gJAAgJ;AAChJ,MAAa,oBAAqB,SAAQ,gBAAM;IAAhD;;QACa,SAAI,GAAG,0DAA0D,CAAC;QAClE,gBAAW,GAAW,6CAA6C,CAAC;QACpE,gBAAW,GAAW,wEAAwE;YACnG,iHAAiH;YACjH,qCAAqC,CAAC;IAW9C,CAAC;IATS,MAAM;;YACR,OAAO,IAAI,KAAM,SAAQ,kBAA6B;gBAClC,aAAa,CAAC,GAAkB,EAAE,CAAmB;;wBACjE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC;4BAAE,OAAO,GAAG,CAAC;wBAEzD,OAAO,IAAA,eAAQ,EAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;oBAC7C,CAAC;iBAAA;aACJ,EAAE,CAAC;QACR,CAAC;KAAA;CACJ;AAhBD,oDAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-to-angular-13.d.ts","sourceRoot":"","sources":["../../src/migration/upgrade-to-angular-13.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"upgrade-to-angular-13.d.ts","sourceRoot":"","sources":["../../src/migration/upgrade-to-angular-13.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAY5C,qBAAa,6BAA8B,SAAQ,MAAM;IACrD,QAAQ,CAAC,IAAI,2DAA2D;IACxE,QAAQ,CAAC,WAAW,0CAA0C;IAC9D,QAAQ,CAAC,WAAW,SACkE;IAEhF,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAcxC;AAED,qBAAa,kBAAmB,SAAQ,MAAM;IAC1C,QAAQ,CAAC,IAAI,gDAAgD;IAC7D,QAAQ,CAAC,WAAW,2BAA2B;IAC/C,QAAQ,CAAC,WAAW,SAMqE;IAEnF,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAmBxC"}
|
|
@@ -20,7 +20,6 @@ const upgrade_angular_dependencies_1 = require("./upgrade-angular-dependencies")
|
|
|
20
20
|
const upgrade_to_angular_12_1 = require("./upgrade-to-angular-12");
|
|
21
21
|
const update_tsconfig_target_1 = require("./update-tsconfig-target");
|
|
22
22
|
const remove_ie_polyfills_1 = require("./remove-ie-polyfills");
|
|
23
|
-
const remove_default_project_1 = require("./remove-default-project");
|
|
24
23
|
const add_testbed_teardown_1 = require("./add-testbed-teardown");
|
|
25
24
|
const remove_component_factory_resolver_1 = require("./remove-component-factory-resolver");
|
|
26
25
|
const upgrade_to_cdk_1 = require("../libraries/cdk/upgrade-to-cdk");
|
|
@@ -43,7 +42,6 @@ class UpgradeToAngular13CodeChanges extends rewrite_1.Recipe {
|
|
|
43
42
|
// Code transformations
|
|
44
43
|
new update_tsconfig_target_1.UpdateTsconfigTarget(),
|
|
45
44
|
new remove_ie_polyfills_1.RemoveIePolyfills(),
|
|
46
|
-
new remove_default_project_1.RemoveDefaultProject(),
|
|
47
45
|
new add_testbed_teardown_1.AddTestBedTeardown(),
|
|
48
46
|
new remove_component_factory_resolver_1.RemoveComponentFactoryResolver(),
|
|
49
47
|
new upgrade_to_cdk_1.UpgradeToCdk13CodeChanges(),
|
|
@@ -61,7 +59,7 @@ class UpgradeToAngular13 extends rewrite_1.Recipe {
|
|
|
61
59
|
this.displayName = "Upgrade to Angular 13";
|
|
62
60
|
this.description = "Migrates Angular 12.x applications to Angular 13. " +
|
|
63
61
|
"This includes updating `tsconfig.json` target to `es2017`, removing IE11 polyfills, " +
|
|
64
|
-
"
|
|
62
|
+
"adding TestBed module teardown, " +
|
|
65
63
|
"simplifying `ComponentFactoryResolver` usage, " +
|
|
66
64
|
"and upgrading Angular, TypeScript, and related dependency versions." +
|
|
67
65
|
" It includes the Angular Material code changes of version 13." +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-to-angular-13.js","sourceRoot":"","sources":["../../src/migration/upgrade-to-angular-13.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAEH,kDAA4C;AAC5C,iFAA0E;AAC1E,mEAAsE;AACtE,qEAA8D;AAC9D,+DAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"upgrade-to-angular-13.js","sourceRoot":"","sources":["../../src/migration/upgrade-to-angular-13.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAEH,kDAA4C;AAC5C,iFAA0E;AAC1E,mEAAsE;AACtE,qEAA8D;AAC9D,+DAAwD;AACxD,iEAA0D;AAC1D,2FAAmF;AACnF,oEAA0E;AAC1E,mFAAyF;AACzF,uDAAkE;AAClE,6EAAgF;AAEhF,MAAa,6BAA8B,SAAQ,gBAAM;IAAzD;;QACa,SAAI,GAAG,uDAAuD,CAAC;QAC/D,gBAAW,GAAG,sCAAsC,CAAC;QACrD,gBAAW,GAAG,wFAAwF;YAC3G,iFAAiF,CAAC;IAgB1F,CAAC;IAdS,UAAU;;YACZ,OAAO;gBACH,IAAI,qDAA6B,EAAE;gBACnC,GAAG,IAAA,+BAAa,EAAC,EAAE,EAAE;oBACjB,uBAAuB;oBACvB,IAAI,6CAAoB,EAAE;oBAC1B,IAAI,uCAAiB,EAAE;oBACvB,IAAI,yCAAkB,EAAE;oBACxB,IAAI,kEAA8B,EAAE;oBACpC,IAAI,0CAAyB,EAAE;oBAC/B,IAAI,oDAA8B,EAAE;iBACvC,CAAC;aACL,CAAC;QACN,CAAC;KAAA;CACJ;AApBD,sEAoBC;AAED,MAAa,kBAAmB,SAAQ,gBAAM;IAA9C;;QACa,SAAI,GAAG,4CAA4C,CAAC;QACpD,gBAAW,GAAG,uBAAuB,CAAC;QACtC,gBAAW,GAAG,oDAAoD;YACvE,sFAAsF;YACtF,kCAAkC;YAClC,gDAAgD;YAChD,qEAAqE;YACrE,+DAA+D;YAC/D,oFAAoF,CAAC;IAqB7F,CAAC;IAnBS,UAAU;;YACZ,OAAO,IAAA,kCAAgB,EAAC,EAAE,EAAE;gBACxB,IAAI,6BAA6B,EAAE;gBACnC,uFAAuF;gBACvF,IAAI,+CAA0B,EAAE;aACnC,EAAE;gBACC,oFAAoF;gBACpF,MAAM,IAAA,yDAA0B,EAAC,EAAE,EAAE;oBACjC,sBAAsB,EAAE,MAAM;oBAC9B,oBAAoB,EAAE,MAAM;oBAC5B,+BAA+B,EAAE,MAAM;oBACvC,4BAA4B,EAAE,UAAU;oBACxC,+BAA+B,EAAE,UAAU;oBAC3C,qBAAqB,EAAE,MAAM;oBAC7B,SAAS,EAAE,QAAQ;oBACnB,YAAY,EAAE,OAAO;iBACxB,CAAC;aACL,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AA9BD,gDA8BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-to-angular-14.d.ts","sourceRoot":"","sources":["../../src/migration/upgrade-to-angular-14.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"upgrade-to-angular-14.d.ts","sourceRoot":"","sources":["../../src/migration/upgrade-to-angular-14.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAc5C,qBAAa,6BAA8B,SAAQ,MAAM;IACrD,QAAQ,CAAC,IAAI,2DAA2D;IACxE,QAAQ,CAAC,WAAW,0CAA0C;IAC9D,QAAQ,CAAC,WAAW,SACkE;IAEhF,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAkBxC;AAED,qBAAa,kBAAmB,SAAQ,MAAM;IAC1C,QAAQ,CAAC,IAAI,gDAAgD;IAC7D,QAAQ,CAAC,WAAW,2BAA2B;IAC/C,QAAQ,CAAC,WAAW,SASqE;IAEnF,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAmBxC"}
|
|
@@ -21,6 +21,7 @@ const upgrade_to_angular_13_1 = require("./upgrade-to-angular-13");
|
|
|
21
21
|
const replace_untyped_forms_1 = require("./replace-untyped-forms");
|
|
22
22
|
const remove_aot_summaries_1 = require("./remove-aot-summaries");
|
|
23
23
|
const replace_default_collection_1 = require("./replace-default-collection");
|
|
24
|
+
const remove_default_project_1 = require("./remove-default-project");
|
|
24
25
|
const remove_show_circular_dependencies_1 = require("./remove-show-circular-dependencies");
|
|
25
26
|
const find_path_match_type_usage_1 = require("../search/find-path-match-type-usage");
|
|
26
27
|
const upgrade_to_cdk_1 = require("../libraries/cdk/upgrade-to-cdk");
|
|
@@ -45,6 +46,7 @@ class UpgradeToAngular14CodeChanges extends rewrite_1.Recipe {
|
|
|
45
46
|
new remove_aot_summaries_1.RemoveAotSummaries(),
|
|
46
47
|
// Workspace configuration
|
|
47
48
|
new replace_default_collection_1.ReplaceDefaultCollection(),
|
|
49
|
+
new remove_default_project_1.RemoveDefaultProject(),
|
|
48
50
|
new remove_show_circular_dependencies_1.RemoveShowCircularDependencies(),
|
|
49
51
|
// Search: type changes
|
|
50
52
|
new find_path_match_type_usage_1.FindPathMatchTypeUsage(),
|
|
@@ -66,6 +68,7 @@ class UpgradeToAngular14 extends rewrite_1.Recipe {
|
|
|
66
68
|
"updating deprecated `initialNavigation` router option values, " +
|
|
67
69
|
"removing `aotSummaries` from TestBed calls, " +
|
|
68
70
|
"replacing the `cli.defaultCollection` workspace option with `cli.schematicCollections`, " +
|
|
71
|
+
"removing `defaultProject` from `angular.json`, " +
|
|
69
72
|
"removing the `showCircularDependencies` builder option, " +
|
|
70
73
|
"and flagging `pathMatch` properties that may need type narrowing." +
|
|
71
74
|
" It includes the Angular Material code changes of version 14." +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-to-angular-14.js","sourceRoot":"","sources":["../../src/migration/upgrade-to-angular-14.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAEH,kDAA4C;AAC5C,iFAA0E;AAC1E,mEAAsE;AACtE,mEAA4D;AAC5D,iEAA0D;AAC1D,6EAAsE;AACtE,2FAAmF;AACnF,qFAA4E;AAC5E,oEAA0E;AAC1E,mFAAyF;AACzF,uDAAkE;AAClE,6EAAgF;AAEhF,MAAa,6BAA8B,SAAQ,gBAAM;IAAzD;;QACa,SAAI,GAAG,uDAAuD,CAAC;QAC/D,gBAAW,GAAG,sCAAsC,CAAC;QACrD,gBAAW,GAAG,wFAAwF;YAC3G,iFAAiF,CAAC;
|
|
1
|
+
{"version":3,"file":"upgrade-to-angular-14.js","sourceRoot":"","sources":["../../src/migration/upgrade-to-angular-14.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAEH,kDAA4C;AAC5C,iFAA0E;AAC1E,mEAAsE;AACtE,mEAA4D;AAC5D,iEAA0D;AAC1D,6EAAsE;AACtE,qEAA8D;AAC9D,2FAAmF;AACnF,qFAA4E;AAC5E,oEAA0E;AAC1E,mFAAyF;AACzF,uDAAkE;AAClE,6EAAgF;AAEhF,MAAa,6BAA8B,SAAQ,gBAAM;IAAzD;;QACa,SAAI,GAAG,uDAAuD,CAAC;QAC/D,gBAAW,GAAG,sCAAsC,CAAC;QACrD,gBAAW,GAAG,wFAAwF;YAC3G,iFAAiF,CAAC;IAoB1F,CAAC;IAlBS,UAAU;;YACZ,OAAO;gBACH,IAAI,qDAA6B,EAAE;gBACnC,GAAG,IAAA,+BAAa,EAAC,EAAE,EAAE;oBACjB,uBAAuB;oBACvB,IAAI,2CAAmB,EAAE;oBACzB,IAAI,yCAAkB,EAAE;oBACxB,0BAA0B;oBAC1B,IAAI,qDAAwB,EAAE;oBAC9B,IAAI,6CAAoB,EAAE;oBAC1B,IAAI,kEAA8B,EAAE;oBACpC,uBAAuB;oBACvB,IAAI,mDAAsB,EAAE;oBAC5B,IAAI,0CAAyB,EAAE;oBAC/B,IAAI,oDAA8B,EAAE;iBACvC,CAAC;aACL,CAAC;QACN,CAAC;KAAA;CACJ;AAxBD,sEAwBC;AAED,MAAa,kBAAmB,SAAQ,gBAAM;IAA9C;;QACa,SAAI,GAAG,4CAA4C,CAAC;QACpD,gBAAW,GAAG,uBAAuB,CAAC;QACtC,gBAAW,GAAG,oDAAoD;YACvE,sHAAsH;YACtH,gEAAgE;YAChE,8CAA8C;YAC9C,0FAA0F;YAC1F,iDAAiD;YACjD,0DAA0D;YAC1D,mEAAmE;YACnE,+DAA+D;YAC/D,oFAAoF,CAAC;IAqB7F,CAAC;IAnBS,UAAU;;YACZ,OAAO,IAAA,kCAAgB,EAAC,EAAE,EAAE;gBACxB,IAAI,6BAA6B,EAAE;gBACnC,uFAAuF;gBACvF,IAAI,+CAA0B,EAAE;aACnC,EAAE;gBACC,oFAAoF;gBACpF,MAAM,IAAA,yDAA0B,EAAC,EAAE,EAAE;oBACjC,sBAAsB,EAAE,MAAM;oBAC9B,oBAAoB,EAAE,MAAM;oBAC5B,+BAA+B,EAAE,MAAM;oBACvC,4BAA4B,EAAE,UAAU;oBACxC,+BAA+B,EAAE,UAAU;oBAC3C,qBAAqB,EAAE,MAAM;oBAC7B,SAAS,EAAE,QAAQ;oBACnB,YAAY,EAAE,OAAO;iBACxB,CAAC;aACL,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAjCD,gDAiCC"}
|
package/package.json
CHANGED
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
import {ExecutionContext, Recipe, TreeVisitor} from "@openrewrite/rewrite";
|
|
8
8
|
import {Json, JsonVisitor, removeAt} from "@openrewrite/rewrite/json";
|
|
9
9
|
|
|
10
|
+
/** @see https://github.com/angular/angular-cli/blob/14.2.x/packages/schematics/angular/migrations/update-14/remove-default-project-option.ts */
|
|
10
11
|
export class RemoveDefaultProject extends Recipe {
|
|
11
12
|
readonly name = "org.openrewrite.angular.migration.remove-default-project";
|
|
12
13
|
readonly displayName: string = "Remove `defaultProject` from `angular.json`";
|
|
13
14
|
readonly description: string = "Removes the deprecated `defaultProject` property from `angular.json`. " +
|
|
14
|
-
"The `defaultProject` option was deprecated in Angular
|
|
15
|
+
"The `defaultProject` option was deprecated in Angular 14, whose `ng update` removes it, and the CLI infers the " +
|
|
16
|
+
"default project from the workspace.";
|
|
15
17
|
|
|
16
18
|
async editor(): Promise<TreeVisitor<any, ExecutionContext>> {
|
|
17
19
|
return new class extends JsonVisitor<ExecutionContext> {
|
|
@@ -9,7 +9,6 @@ import {upgradeAngularDependencies} from "./upgrade-angular-dependencies";
|
|
|
9
9
|
import {UpgradeToAngular12CodeChanges} from "./upgrade-to-angular-12";
|
|
10
10
|
import {UpdateTsconfigTarget} from "./update-tsconfig-target";
|
|
11
11
|
import {RemoveIePolyfills} from "./remove-ie-polyfills";
|
|
12
|
-
import {RemoveDefaultProject} from "./remove-default-project";
|
|
13
12
|
import {AddTestBedTeardown} from "./add-testbed-teardown";
|
|
14
13
|
import {RemoveComponentFactoryResolver} from "./remove-component-factory-resolver";
|
|
15
14
|
import {UpgradeToCdk13CodeChanges} from "../libraries/cdk/upgrade-to-cdk";
|
|
@@ -30,7 +29,6 @@ export class UpgradeToAngular13CodeChanges extends Recipe {
|
|
|
30
29
|
// Code transformations
|
|
31
30
|
new UpdateTsconfigTarget(),
|
|
32
31
|
new RemoveIePolyfills(),
|
|
33
|
-
new RemoveDefaultProject(),
|
|
34
32
|
new AddTestBedTeardown(),
|
|
35
33
|
new RemoveComponentFactoryResolver(),
|
|
36
34
|
new UpgradeToCdk13CodeChanges(),
|
|
@@ -45,7 +43,7 @@ export class UpgradeToAngular13 extends Recipe {
|
|
|
45
43
|
readonly displayName = "Upgrade to Angular 13";
|
|
46
44
|
readonly description = "Migrates Angular 12.x applications to Angular 13. " +
|
|
47
45
|
"This includes updating `tsconfig.json` target to `es2017`, removing IE11 polyfills, " +
|
|
48
|
-
"
|
|
46
|
+
"adding TestBed module teardown, " +
|
|
49
47
|
"simplifying `ComponentFactoryResolver` usage, " +
|
|
50
48
|
"and upgrading Angular, TypeScript, and related dependency versions." +
|
|
51
49
|
" It includes the Angular Material code changes of version 13." +
|
|
@@ -10,6 +10,7 @@ import {UpgradeToAngular13CodeChanges} from "./upgrade-to-angular-13";
|
|
|
10
10
|
import {ReplaceUntypedForms} from "./replace-untyped-forms";
|
|
11
11
|
import {RemoveAotSummaries} from "./remove-aot-summaries";
|
|
12
12
|
import {ReplaceDefaultCollection} from "./replace-default-collection";
|
|
13
|
+
import {RemoveDefaultProject} from "./remove-default-project";
|
|
13
14
|
import {RemoveShowCircularDependencies} from "./remove-show-circular-dependencies";
|
|
14
15
|
import {FindPathMatchTypeUsage} from "../search/find-path-match-type-usage";
|
|
15
16
|
import {UpgradeToCdk14CodeChanges} from "../libraries/cdk/upgrade-to-cdk";
|
|
@@ -32,6 +33,7 @@ export class UpgradeToAngular14CodeChanges extends Recipe {
|
|
|
32
33
|
new RemoveAotSummaries(),
|
|
33
34
|
// Workspace configuration
|
|
34
35
|
new ReplaceDefaultCollection(),
|
|
36
|
+
new RemoveDefaultProject(),
|
|
35
37
|
new RemoveShowCircularDependencies(),
|
|
36
38
|
// Search: type changes
|
|
37
39
|
new FindPathMatchTypeUsage(),
|
|
@@ -50,6 +52,7 @@ export class UpgradeToAngular14 extends Recipe {
|
|
|
50
52
|
"updating deprecated `initialNavigation` router option values, " +
|
|
51
53
|
"removing `aotSummaries` from TestBed calls, " +
|
|
52
54
|
"replacing the `cli.defaultCollection` workspace option with `cli.schematicCollections`, " +
|
|
55
|
+
"removing `defaultProject` from `angular.json`, " +
|
|
53
56
|
"removing the `showCircularDependencies` builder option, " +
|
|
54
57
|
"and flagging `pathMatch` properties that may need type narrowing." +
|
|
55
58
|
" It includes the Angular Material code changes of version 14." +
|