Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(core): fix migrate command to properly handle the packages consol…
…idation (#9352)
  • Loading branch information
leosvelperez authored and FrozenPandaz committed Mar 16, 2022
1 parent 1b7a3b2 commit 7e7f04a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/nx/bin/nx.ts
Expand Up @@ -6,7 +6,11 @@ import { output } from '../src/cli/output';
import { detectPackageManager } from '../src/shared/package-manager';
import { Workspace } from '../src/cli/workspace';

if (process.argv[2] === 'new' || process.argv[2] === '_migrate') {
if (
process.argv[2] === 'new' ||
process.argv[2] === '_migrate' ||
process.argv[2] === 'migrate'
) {
require('../src/cli/index');
} else {
const workspace = findWorkspaceRoot(process.cwd());
Expand Down
1 change: 1 addition & 0 deletions packages/nx/src/cli/index.ts
Expand Up @@ -51,6 +51,7 @@ export async function invokeCommand(
commandArgs,
isVerbose
);
case 'migrate':
case '_migrate':
return (await import('../commands/migrate')).migrate(
root,
Expand Down

0 comments on commit 7e7f04a

Please sign in to comment.