@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/{bundler-WsEvH_b2.cjs → bundler-B1qy9b-j.cjs} +44 -3
- package/dist/bundler-B1qy9b-j.cjs.map +1 -0
- package/dist/{bundler-DRXCw_YR.mjs → bundler-DskIqW2t.mjs} +44 -3
- package/dist/bundler-DskIqW2t.mjs.map +1 -0
- package/dist/index.cjs +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +11 -4
- package/dist/index.mjs.map +1 -1
- package/dist/storage-BOOpAF8N.cjs +5 -0
- package/dist/{storage-BXoJvmv2.cjs → storage-Bj1E26lU.cjs} +39 -1
- package/dist/storage-Bj1E26lU.cjs.map +1 -0
- package/dist/{storage-C9PU_30f.mjs → storage-kSxTjkNb.mjs} +34 -2
- package/dist/storage-kSxTjkNb.mjs.map +1 -0
- package/dist/storage-tgZSUnKl.mjs +3 -0
- package/package.json +2 -2
- package/src/build/__tests__/bundler.spec.ts +444 -0
- package/src/build/bundler.ts +73 -4
- package/src/build/index.ts +10 -0
- package/src/secrets/__tests__/storage.spec.ts +208 -0
- package/src/secrets/storage.ts +58 -0
- package/dist/bundler-DRXCw_YR.mjs.map +0 -1
- package/dist/bundler-WsEvH_b2.cjs.map +0 -1
- package/dist/storage-BUYQJgz7.cjs +0 -4
- package/dist/storage-BXoJvmv2.cjs.map +0 -1
- package/dist/storage-C9PU_30f.mjs.map +0 -1
- package/dist/storage-DLJAYxzJ.mjs +0 -3
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-
|
|
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.
|
|
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-
|
|
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`);
|