mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
69c3d2849d
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