angular-docs-cn/packages/core/schematics/utils
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
..
tslint feat(compiler-cli): add support for TypeScript 4.0 (#38076) 2020-08-24 13:06:59 -07:00
typescript fix(core): migration error if program contains files outside of the project (#39790) 2020-11-20 12:51:19 -08:00
BUILD.bazel build: update to rules_nodejs 0.32.2 (#31325) 2019-07-01 14:16:42 -07:00
import_manager.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
line_mappings.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
ng_component_template.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
ng_decorators.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
parse_html.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
project_tsconfig_paths.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
schematics_prompt.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00