angular/packages/core/schematics/utils
Kristiyan Kostadinov 69c3d2849d refactor(migrations): minor improvements to existing schematic utilties (#48790)
Makes the following minor improvements to our current schematic utilities:
* `closestNode` now takes a TS predicate function instead of a `SyntaxKind`. This allows it automatically infer the type of the match.
* `getImportSpecifier` now accepts a regex for the module name. This will be useful for some upcoming migrations.
* Splits the logic for creating the migration program options into a separate function so that it's easier to reuse.
* `createMigrationProgram` now returns the program directly, instead of a literal with some other information.
* `FakeReadFileFn` and `createMigrationCompilerHost` aren't exported anymore since they aren't used anywhere.

PR Close #48790
2023-01-24 16:48:19 +00:00
..
tslint build: make devmode a noop and ensure it never runs (#48521) 2022-12-19 19:50:45 +00:00
typescript refactor(migrations): minor improvements to existing schematic utilties (#48790) 2023-01-24 16:48:19 +00:00
BUILD.bazel build: make devmode a noop and ensure it never runs (#48521) 2022-12-19 19:50:45 +00:00
import_manager.ts refactor(migrations): allow for aliases to be specified in the import manager (#48790) 2023-01-24 16:48:19 +00:00
line_mappings.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
load_esm.ts refactor(migrations): support use of an ESM @angular/compiler-cli package (#43657) 2021-10-04 16:24:48 -07:00
ng_component_template.ts refactor(compiler): remove TypeScript 4.7 compatibility code (#48470) 2023-01-02 13:47:22 +00:00
ng_decorators.ts refactor: make all imports compatible with ESM/CJS output. (#43431) 2021-10-01 18:28:45 +00:00
parse_html.ts Revert "Revert "refactor(migrations): support use of an ESM @angular/compiler package (#43627)"" (#43637) 2021-09-29 14:46:03 -07:00
project_tsconfig_paths.ts fix(migrations): migration failed finding tsconfig file (#43343) 2021-09-07 23:16:56 +00:00
template_ast_visitor.ts Revert "Revert "refactor(migrations): support use of an ESM @angular/compiler package (#43627)"" (#43637) 2021-09-29 14:46:03 -07:00