@geekmidas/cli 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -26,7 +26,7 @@ import prompts from "prompts";
26
26
 
27
27
  //#region package.json
28
28
  var name = "@geekmidas/cli";
29
- var version = "0.18.0";
29
+ var version = "0.21.0";
30
30
  var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
31
31
  var private$1 = false;
32
32
  var type = "module";
@@ -1244,7 +1244,7 @@ async function startWorkspaceServices(workspace) {
1244
1244
  logger$8.warn("⚠️ No docker-compose.yml found. Services will not be started.");
1245
1245
  return;
1246
1246
  }
1247
- execSync(`docker-compose up -d ${servicesToStart.join(" ")}`, {
1247
+ execSync(`docker compose up -d ${servicesToStart.join(" ")}`, {
1248
1248
  cwd: workspace.root,
1249
1249
  stdio: "inherit"
1250
1250
  });
@@ -4753,9 +4753,17 @@ function generateDockerFiles(options, template, dbApps) {
4753
4753
  retries: 5`);
4754
4754
  volumes.push(" rabbitmq_data:");
4755
4755
  }
4756
- let dockerCompose = `version: '3.8'
4757
-
4758
- services:
4756
+ if (options.services.mail) services.push(` mailpit:
4757
+ image: axllent/mailpit:latest
4758
+ container_name: ${options.name}-mailpit
4759
+ restart: unless-stopped
4760
+ ports:
4761
+ - '1025:1025'
4762
+ - '8025:8025'
4763
+ environment:
4764
+ MP_SMTP_AUTH_ACCEPT_ANY: 1
4765
+ MP_SMTP_AUTH_ALLOW_INSECURE: 1`);
4766
+ let dockerCompose = `services:
4759
4767
  ${services.join("\n\n")}
4760
4768
  `;
4761
4769
  if (volumes.length > 0) dockerCompose += `