Skip to content

Commit

Permalink
use jhipster cli
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Jun 11, 2024
1 parent 7e27582 commit e967275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/migrate/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import {
import { GENERATOR_JHIPSTER } from 'generator-jhipster';
import command from './command.js';
import { GENERATOR_BOOTSTRAP } from 'generator-jhipster/generators';
import { fileURLToPath } from 'url';
import { normalizeBlueprintName } from './internal/blueprints.js';

export default class extends BaseGenerator {
Expand Down Expand Up @@ -553,7 +552,8 @@ export default class extends BaseGenerator {
}
}
} else if (jhipsterVersion === 'bundled') {
cli = join(fileURLToPath(new URL('../../cli/cli.cjs', import.meta.url)));
const packagePath = this.env.getPackagePath('jhipster:app');
cli = join(packagePath, 'dist/cli/jhipster.cjs');
cliOptions = ['app', ...cliOptions];
} else if (jhipsterVersion !== 'none') {
if (jhipsterVersion === 'current') {
Expand Down

0 comments on commit e967275

Please sign in to comment.