From 39dccd83c3d207b88b2cf7f1d86c2f6090e0b1b9 Mon Sep 17 00:00:00 2001 From: Marcelo Boveto Shima Date: Thu, 4 Jan 2024 15:26:14 -0300 Subject: [PATCH] adjust angular for microservice and microfrontend --- generators/angular/templates/package.json.ejs | 4 +++- generators/workspaces/generator.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/generators/angular/templates/package.json.ejs b/generators/angular/templates/package.json.ejs index db856ce73b3a..370abc75471a 100644 --- a/generators/angular/templates/package.json.ejs +++ b/generators/angular/templates/package.json.ejs @@ -65,8 +65,10 @@ <%_ if (skipServer) { _%> "sonar-scanner": "3.1.0", <%_ } _%> -<%_ if (microfrontend && applicationTypeGateway) { _%> +<%_ if (microfrontend) { _%> + <%_ if (applicationTypeGateway) { _%> "@angular-architects/module-federation-runtime": "<%= nodeDependencies['@angular-architects/module-federation-runtime'] %>", + <%_ } _%> "@angular-architects/module-federation": "<%= nodeDependencies['@angular-architects/module-federation'] %>", <%_ } _%> <%_ if (communicationSpringWebsocket) { _%> diff --git a/generators/workspaces/generator.js b/generators/workspaces/generator.js index a6b7cab6568b..8ea030f44d0a 100644 --- a/generators/workspaces/generator.js +++ b/generators/workspaces/generator.js @@ -69,7 +69,7 @@ export default class WorkspacesGenerator extends BaseWorkspacesGenerator { return this.asConfiguringTaskGroup({ checkWorkspaces() { if (this.generateWorkspaces && !this.jhipsterConfig.monorepository) { - throw new Error('Workspaces option is only supported in monorepositories or skipping git.'); + throw new Error('Workspaces option is only supported in monorepositories.'); } }, async configure() {