Skip to content

Commit d4d966a

Browse files
authored
fix cli with jhipster-dotnetcore folder (jhipster#1385)
1 parent a636a9a commit d4d966a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/cli.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const { version, bin } = require('../package.json');
88
const packagePath = dirname(__dirname);
99
const packageFolderName = basename(packagePath);
1010
const devBlueprintPath = join(packagePath, '.blueprint');
11+
const blueprint = packageFolderName.startsWith('jhipster-') ? `generator-${packageFolderName}` : packageFolderName;
1112

1213
(async () => {
1314
const { runJHipster, done, logger } = await import('generator-jhipster/cli');
@@ -20,7 +21,7 @@ const devBlueprintPath = join(packagePath, '.blueprint');
2021
defaultCommand: 'app',
2122
devBlueprintPath,
2223
blueprints: {
23-
[packageFolderName]: version,
24+
[blueprint]: version,
2425
},
2526
printLogo: () => {},
2627
printBlueprintLogo: () => {

0 commit comments

Comments
 (0)