@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.cjs CHANGED
@@ -27,7 +27,7 @@ const node_module = require_chunk.__toESM(require("node:module"));
27
27
 
28
28
  //#region package.json
29
29
  var name = "@geekmidas/cli";
30
- var version = "0.18.0";
30
+ var version = "0.20.0";
31
31
  var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
32
32
  var private$1 = false;
33
33
  var type = "module";
@@ -1245,7 +1245,7 @@ async function startWorkspaceServices(workspace) {
1245
1245
  logger$8.warn("⚠️ No docker-compose.yml found. Services will not be started.");
1246
1246
  return;
1247
1247
  }
1248
- (0, node_child_process.execSync)(`docker-compose up -d ${servicesToStart.join(" ")}`, {
1248
+ (0, node_child_process.execSync)(`docker compose up -d ${servicesToStart.join(" ")}`, {
1249
1249
  cwd: workspace.root,
1250
1250
  stdio: "inherit"
1251
1251
  });
@@ -4754,9 +4754,17 @@ function generateDockerFiles(options, template, dbApps) {
4754
4754
  retries: 5`);
4755
4755
  volumes.push(" rabbitmq_data:");
4756
4756
  }
4757
- let dockerCompose = `version: '3.8'
4758
-
4759
- services:
4757
+ if (options.services.mail) services.push(` mailpit:
4758
+ image: axllent/mailpit:latest
4759
+ container_name: ${options.name}-mailpit
4760
+ restart: unless-stopped
4761
+ ports:
4762
+ - '1025:1025'
4763
+ - '8025:8025'
4764
+ environment:
4765
+ MP_SMTP_AUTH_ACCEPT_ANY: 1
4766
+ MP_SMTP_AUTH_ALLOW_INSECURE: 1`);
4767
+ let dockerCompose = `services:
4760
4768
  ${services.join("\n\n")}
4761
4769
  `;
4762
4770
  if (volumes.length > 0) dockerCompose += `