MCPcopy
hub / github.com/angular/angular / main

Function main

packages/core/schematics/migrations/signal-migration/src/cli.ts:28–51  ·  view source on GitHub ↗
(
  absoluteTsconfigPath: string,
  bestEffortMode: boolean,
  insertTodosForSkippedFields: boolean,
)

Source from the content-addressed store, hash-verified

26 * Runs the signal input migration for the given TypeScript project.
27 */
28export async function main(
29 absoluteTsconfigPath: string,
30 bestEffortMode: boolean,
31 insertTodosForSkippedFields: boolean,
32) {
33 const migration = new SignalInputMigration({
34 bestEffortMode,
35 insertTodosForSkippedFields,
36 upgradeAnalysisPhaseToAvoidBatch: true,
37 });
38 const info = migration.createProgram(absoluteTsconfigPath, new NodeJSFileSystem());
39
40 await migration.analyze(info);
41
42 assert(
43 migration.upgradedAnalysisPhaseResults,
44 'Expected upgraded analysis phase results; batch mode is disabled.',
45 );
46
47 const {replacements, projectRoot} = migration.upgradedAnalysisPhaseResults;
48
49 // Apply replacements
50 writeMigrationReplacements(replacements, projectRoot);
51}

Callers 1

cli.tsFile · 0.70

Calls 4

createProgramMethod · 0.95
analyzeMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…