angular-cn/packages/core/schematics/migrations
Kristiyan Kostadinov 1a26f6da6e fix(core): migration error if program contains files outside of the project (#39790)
Currently all of our migrations are set up to find the tsconfig paths within a project,
create a `Program` out of each and migrate the files inside of the `Program`. The
problem is that the `Program` can include files outside of the project and the CLI
APIs that we use to interact with the file system assume that all files are within
the project.

These changes consolidate the logic, that determines whether a file can be migrated,
in a single place and add an extra check to exclude files outside of the root.

Fixes #39778.

PR Close #39790
2020-11-20 12:51:19 -08:00
..
abstract-control-parent fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
dynamic-queries fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
google3 fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
initial-navigation fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
missing-injectable fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
module-with-providers fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
move-document fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
native-view-encapsulation fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
navigation-extras-omissions fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
relative-link-resolution fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
renderer-to-renderer2 fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
router-preserve-query-params fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
static-queries fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
template-var-assignment fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
undecorated-classes-with-decorated-fields fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
undecorated-classes-with-di fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
wait-for-async fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00