MCPcopy
hub / github.com/teambit/bit / runMigrateIfNeeded

Method runMigrateIfNeeded

src/cli/command-runner.ts:79–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 private async runMigrateIfNeeded(): Promise<any> {
80 // @ts-ignore LegacyCommandAdapter has .migration
81 if (this.command.migration) {
82 logger.debug('Checking if a migration is needed');
83 // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
84 return migrate(null, false);
85 }
86 return null;
87 }
88}
89
90function serializeErrAndExit(err, commandName: string) {

Callers 1

runCommandMethod · 0.95

Calls 1

debugMethod · 0.45

Tested by

no test coverage detected