Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(misc): fix nx migrate to execute run-schematic tasks
  • Loading branch information
FrozenPandaz authored and vsavkin committed Feb 4, 2020
1 parent 4f29fb4 commit e5e0e31
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/tao/src/commands/migrate.ts
Expand Up @@ -13,6 +13,7 @@ import { convertToCamelCase, handleErrors } from '../shared/params';
import minimist = require('minimist');
import { NodePackageName } from '@angular-devkit/schematics/tasks/node-package/options';
import { TaskExecutor } from '@angular-devkit/schematics';
import { BuiltinTaskExecutor } from '@angular-devkit/schematics/tasks/node';

export type MigrationsJson = {
version: string;
Expand Down Expand Up @@ -573,15 +574,13 @@ class MigrationEngineHost extends NodeModulesEngineHost {
});
})
});

this.registerTaskExecutor(BuiltinTaskExecutor.RunSchematic);
}

protected _resolveCollectionPath(name: string): string {
let collectionPath: string | undefined = undefined;

try {
return super._resolveCollectionPath(name);
} catch {}

if (name.startsWith('.') || name.startsWith('/')) {
name = resolve(name);
}
Expand Down

0 comments on commit e5e0e31

Please sign in to comment.