@geekmidas/cli 0.43.0 → 0.45.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
@@ -28,7 +28,7 @@ import prompts from "prompts";
28
28
 
29
29
  //#region package.json
30
30
  var name = "@geekmidas/cli";
31
- var version = "0.43.0";
31
+ var version = "0.45.0";
32
32
  var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
33
33
  var private$1 = false;
34
34
  var type = "module";
@@ -1624,7 +1624,8 @@ async function prepareEntryCredentials(options) {
1624
1624
  credentials.PORT = String(resolvedPort);
1625
1625
  const secretsDir = join(secretsRoot, ".gkm");
1626
1626
  await mkdir(secretsDir, { recursive: true });
1627
- const secretsJsonPath = join(secretsDir, "dev-secrets.json");
1627
+ const secretsFileName = appName ? `dev-secrets-${appName}.json` : "dev-secrets.json";
1628
+ const secretsJsonPath = join(secretsDir, secretsFileName);
1628
1629
  await writeFile(secretsJsonPath, JSON.stringify(credentials, null, 2));
1629
1630
  return {
1630
1631
  credentials,
@@ -4695,7 +4696,11 @@ async function workspaceDeployCommand(workspace, options) {
4695
4696
  };
4696
4697
  if (dockerServices.postgres || dockerServices.redis) {
4697
4698
  logger$1.log("\nšŸ”§ Provisioning infrastructure services...");
4698
- await provisionServices(api, project.projectId, environmentId, workspace.name, dockerServices);
4699
+ const existingUrls = stageSecrets ? {
4700
+ DATABASE_URL: stageSecrets.urls?.DATABASE_URL,
4701
+ REDIS_URL: stageSecrets.urls?.REDIS_URL
4702
+ } : void 0;
4703
+ await provisionServices(api, project.projectId, environmentId, workspace.name, dockerServices, existingUrls);
4699
4704
  }
4700
4705
  const backendApps = appsToDeployNames.filter((name$1) => workspace.apps[name$1].type === "backend");
4701
4706
  const frontendApps = appsToDeployNames.filter((name$1) => workspace.apps[name$1].type === "frontend");
@@ -6562,12 +6567,14 @@ const minimalTemplate = {
6562
6567
  "@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
6563
6568
  "@hono/node-server": "~1.14.1",
6564
6569
  hono: "~4.8.2",
6565
- pino: "~9.6.0"
6570
+ pino: "~9.6.0",
6571
+ zod: "~4.1.0"
6566
6572
  },
6567
6573
  devDependencies: {
6568
6574
  "@biomejs/biome": "~2.3.0",
6569
6575
  "@geekmidas/cli": GEEKMIDAS_VERSIONS["@geekmidas/cli"],
6570
6576
  "@types/node": "~22.0.0",
6577
+ esbuild: "~0.27.0",
6571
6578
  tsx: "~4.20.0",
6572
6579
  turbo: "~2.3.0",
6573
6580
  typescript: "~5.8.2",