Skip to content

Commit

Permalink
only add applicationIndex if there is more than one application
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 17, 2024
1 parent c1acb67 commit c1e0f84
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions generators/jdl/__snapshots__/generator.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ exports[`generator - jdl for application jdl with valid jdl should write expecte
".yo-rc.json": {
"contents": "{
"generator-jhipster": {
"applicationIndex": 0,
"baseName": "jhipster",
"entities": []
}
Expand Down Expand Up @@ -109,7 +108,6 @@ exports[`generator - jdl for one application and entity jdl with valid jdl shoul
".yo-rc.json": {
"contents": "{
"generator-jhipster": {
"applicationIndex": 0,
"baseName": "jhipster",
"entities": [
"Foo"
Expand Down Expand Up @@ -254,7 +252,6 @@ exports[`generator - jdl with a gateway generating json should generate expected
".yo-rc.json": {
"contents": "{
"generator-jhipster": {
"applicationIndex": 0,
"applicationType": "gateway",
"applications": {
"ms": {}
Expand Down
1 change: 0 additions & 1 deletion generators/jdl/generator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ describe(`generator - ${generator}`, () => {
".yo-rc.json": {
"contents": "{
"generator-jhipster": {
"applicationIndex": 0,
"baseName": "jhipster",
"blueprints": [
{
Expand Down
2 changes: 1 addition & 1 deletion generators/jdl/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export default class JdlGenerator extends BaseGenerator {
app.sharedFs = createMemFs();
}
}
addApplicationIndex(this.applications);
}
addApplicationIndex(this.applications);
customizeForMicroservices(this.exportedApplicationsWithEntities);
},
async generateJson() {
Expand Down

0 comments on commit c1e0f84

Please sign in to comment.