angular-docs-cn/packages/core/schematics
Paul Gschwendtner c56c2416a9 refactor(core): undecorated-classes-with-decorated-fields migration commits empty updates (#32391)
Commit 904a2018e0 introduced a new migration for
undecorated classes with decorated Angular class members. Currently the migration
always calls `tree.beginUpdate` and `tree.commitUpdate` (even if there are no changes).

This causes unnecessary updates to be reported to developers running `ng update`. Once
an update is commited, the CLI will report the update regardless of whether any changes were
made or not.

This behavior can be observed in the `ng_update_migrations` integration test. See:
https://circleci.com/gh/angular/angular/438470#tests/containers/3. Notice how all
source files are denoted as `UPDATED` (even though there are no changes).

PR Close #32391
2019-08-30 12:46:01 -07:00
..
migrations refactor(core): undecorated-classes-with-decorated-fields migration commits empty updates (#32391) 2019-08-30 12:46:01 -07:00
test refactor(core): wire up missing-injectable migration for ng-update (#32349) 2019-08-29 12:34:43 -07:00
utils feat(core): add undecorated classes migration schematic (#31650) 2019-08-13 14:40:52 -07:00
BUILD.bazel refactor(core): wire up missing-injectable migration for ng-update (#32349) 2019-08-29 12:34:43 -07:00
migrations.json refactor(core): wire up missing-injectable migration for ng-update (#32349) 2019-08-29 12:34:43 -07:00
tsconfig.json feat(core): add undecorated classes migration schematic (#31650) 2019-08-13 14:40:52 -07:00