File tree Expand file tree Collapse file tree
generators/generate-blueprint Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,8 +143,6 @@ export default class extends GenerateBlueprintBaseGenerator {
143143 if ( this . jhipsterConfig [ LOCAL_BLUEPRINT_OPTION ] ) {
144144 await this . composeWithJHipster ( 'jhipster:generate-blueprint:local' ) ;
145145 } else {
146- const initGenerator = await this . composeWithJHipster ( 'init' ) ;
147- initGenerator . generateReadme = false ;
148146 await this . composeWithJHipster ( 'jhipster:generate-blueprint:standalone' ) ;
149147 }
150148 } ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export default class BootstrapGenerator extends BlueprintGenerator {
3333 get loading ( ) {
3434 return this . asLoadingTaskGroup ( {
3535 async loading ( { applicationDefaults } ) {
36- applicationDefaults ( { commands : ( ) => [ ] , typescriptEslint : false } ) ;
36+ applicationDefaults ( { commands : ( ) => [ ] } ) ;
3737 } ,
3838 } ) ;
3939 }
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ export default class StandaloneBlueprintGenerator extends GenerateBlueprintBaseG
3636 }
3737
3838 await this . dependsOnBootstrap ( 'generate-blueprint' ) ;
39+ const initGenerator = await this . dependsOnJHipster ( 'init' ) ;
40+ initGenerator . generateReadme = false ;
3941 }
4042
4143 get preparing ( ) {
@@ -153,7 +155,7 @@ export default class StandaloneBlueprintGenerator extends GenerateBlueprintBaseG
153155 files : defaultPublishedFiles ,
154156 scripts : {
155157 ejslint : 'ejslint generators/**/*.ejs' ,
156- lint : 'eslint . ' ,
158+ lint : 'eslint' ,
157159 'lint-fix' : 'npm run ejslint && npm run lint -- --fix' ,
158160 pretest : 'npm run prettier-check && npm run lint && tsc' ,
159161 test : 'vitest run' ,
@@ -177,6 +179,13 @@ export default class StandaloneBlueprintGenerator extends GenerateBlueprintBaseG
177179 node : jhipsterPackageJson . engines . node ,
178180 } ,
179181 } ) ;
182+ if ( ! application . javascriptBlueprint ) {
183+ this . packageJson . merge ( {
184+ devDependencies : {
185+ 'typescript' : mainDependencies [ 'typescript' ] ,
186+ } ,
187+ } ) ;
188+ }
180189 } ,
181190 addCliToPackageJson ( { application } ) {
182191 const { cli, cliName } = application ;
Original file line number Diff line number Diff line change 11import type { JHipsterCommandDefinition } from 'generator-jhipster';
2- import BaseApplicationGenerator from 'generator-jhipster/generators/base-application';
32import type {
43 Application as BaseApplication,
54 Config as BaseConfig,
65 Entity as BaseEntity,
76 Options as BaseOptions,
87 Source as BaseSource,
9- } from 'generator-jhipster/generators/add';
8+ } from 'generator-jhipster/generators/app';
9+ import BaseApplicationGenerator from 'generator-jhipster/generators/base-application';
1010
1111type <% - upperFirstCamelCaseBaseName %> BlueprintConfig = any;
1212
You can’t perform that action at this time.
0 commit comments