@geekmidas/cli 0.12.0 → 0.13.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
@@ -2,7 +2,7 @@
2
2
  import { loadConfig, parseModuleConfig } from "./config-DYULeEv8.mjs";
3
3
  import { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi-BfFlOBCG.mjs";
4
4
  import { generateReactQueryCommand } from "./openapi-react-query-B6XTeGqS.mjs";
5
- import { maskPassword, readStageSecrets, secretsExist, setCustomSecret, writeStageSecrets } from "./storage-C9PU_30f.mjs";
5
+ import { maskPassword, readStageSecrets, secretsExist, setCustomSecret, writeStageSecrets } from "./storage-kSxTjkNb.mjs";
6
6
  import { createRequire } from "node:module";
7
7
  import { existsSync, mkdirSync } from "node:fs";
8
8
  import { dirname, join, parse, relative, resolve } from "node:path";
@@ -28,7 +28,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
28
28
  //#endregion
29
29
  //#region package.json
30
30
  var name = "@geekmidas/cli";
31
- var version = "0.12.0";
31
+ var version = "0.13.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";
@@ -1259,14 +1259,21 @@ async function buildForProvider(provider, context, rootOutputDir, endpointGenera
1259
1259
  let masterKey;
1260
1260
  if (context.production?.bundle && !skipBundle) {
1261
1261
  logger$6.log(`\n📦 Bundling production server...`);
1262
- const { bundleServer } = await import("./bundler-DRXCw_YR.mjs");
1262
+ const { bundleServer } = await import("./bundler-DskIqW2t.mjs");
1263
+ const allConstructs = [
1264
+ ...endpoints.map((e) => e.construct),
1265
+ ...functions.map((f) => f.construct),
1266
+ ...crons.map((c) => c.construct),
1267
+ ...subscribers.map((s) => s.construct)
1268
+ ];
1263
1269
  const bundleResult = await bundleServer({
1264
1270
  entryPoint: join(outputDir, "server.ts"),
1265
1271
  outputDir: join(outputDir, "dist"),
1266
1272
  minify: context.production.minify,
1267
1273
  sourcemap: false,
1268
1274
  external: context.production.external,
1269
- stage
1275
+ stage,
1276
+ constructs: allConstructs
1270
1277
  });
1271
1278
  masterKey = bundleResult.masterKey;
1272
1279
  logger$6.log(`✅ Bundle complete: .gkm/server/dist/server.mjs`);