@geekmidas/cli 10.0.0-alpha.13 → 10.0.0-alpha.15
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 +25 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +25 -39
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -22
- package/dist/openapi-react-query.cjs +0 -158
- package/dist/openapi-react-query.cjs.map +0 -1
- package/dist/openapi-react-query.d.cts +0 -9
- package/dist/openapi-react-query.d.cts.map +0 -1
- package/dist/openapi-react-query.d.mts +0 -9
- package/dist/openapi-react-query.d.mts.map +0 -1
- package/dist/openapi-react-query.mjs +0 -158
- package/dist/openapi-react-query.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,6 @@ import { t as getKeyPath } from "./keystore-B4PRlbgE.mjs";
|
|
|
9
9
|
import { i as setCustomSecret, n as readStageSecrets, o as toEmbeddableSecrets, r as secretsExist, s as writeStageSecrets, t as maskPassword } from "./storage-P_b3w7uj.mjs";
|
|
10
10
|
import { a as openapiCommand, c as runtimeFor, n as generateOpenApi, o as resolveOpenApiConfig, r as generateOpenApiFrom, s as EndpointGenerator, t as OPENAPI_OUTPUT_PATH$1 } from "./openapi-vy4JzhUv.mjs";
|
|
11
11
|
import { i as withRoutes, r as withCompute } from "./emit-Bzq7JsMP.mjs";
|
|
12
|
-
import { generateReactQueryCommand } from "./openapi-react-query.mjs";
|
|
13
12
|
import { n as writeDockerEnvFromSecrets, t as generateFullstackCustomSecrets } from "./fullstack-secrets-BET8gqwK.mjs";
|
|
14
13
|
import { n as pullSecrets, r as pushSecrets, t as isSSMConfigured } from "./sync-B3xxXtJT.mjs";
|
|
15
14
|
import { createRequire } from "node:module";
|
|
@@ -39,7 +38,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
39
38
|
import { lookup } from "node:dns/promises";
|
|
40
39
|
import prompts from "prompts";
|
|
41
40
|
//#region package.json
|
|
42
|
-
var version = "10.0.0-alpha.
|
|
41
|
+
var version = "10.0.0-alpha.15";
|
|
43
42
|
//#endregion
|
|
44
43
|
//#region src/auth/credentials.ts
|
|
45
44
|
/**
|
|
@@ -8300,7 +8299,7 @@ const DEPENDENCY_VERSIONS = {
|
|
|
8300
8299
|
"@radix-ui/react-tooltip": "~1.2.16",
|
|
8301
8300
|
"class-variance-authority": "~0.7.1",
|
|
8302
8301
|
clsx: "~2.1.1",
|
|
8303
|
-
"lucide-react": "~
|
|
8302
|
+
"lucide-react": "~1.48.0",
|
|
8304
8303
|
"tailwind-merge": "~3.7.0",
|
|
8305
8304
|
"vite-tsconfig-paths": "~5.1.4",
|
|
8306
8305
|
"@biomejs/biome": "~2.5.14",
|
|
@@ -8381,26 +8380,26 @@ function loadPackageJson() {
|
|
|
8381
8380
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
8382
8381
|
*/
|
|
8383
8382
|
const GEEKMIDAS_VERSIONS = {
|
|
8384
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
8385
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
8386
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
8387
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
8388
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
8389
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
8390
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
8391
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
8392
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
8393
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
8394
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
8395
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
8396
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
8397
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
8398
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
8399
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
8400
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
8401
|
-
"@geekmidas/studio": "~10.0.0-alpha.
|
|
8402
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
8403
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
8383
|
+
"@geekmidas/audit": "~10.0.0-alpha.15",
|
|
8384
|
+
"@geekmidas/auth": "~10.0.0-alpha.15",
|
|
8385
|
+
"@geekmidas/cache": "~10.0.0-alpha.15",
|
|
8386
|
+
"@geekmidas/client": "~10.0.0-alpha.15",
|
|
8387
|
+
"@geekmidas/cloud": "~10.0.0-alpha.15",
|
|
8388
|
+
"@geekmidas/constructs": "~10.0.0-alpha.15",
|
|
8389
|
+
"@geekmidas/db": "~10.0.0-alpha.15",
|
|
8390
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.15",
|
|
8391
|
+
"@geekmidas/envkit": "~10.0.0-alpha.15",
|
|
8392
|
+
"@geekmidas/errors": "~10.0.0-alpha.15",
|
|
8393
|
+
"@geekmidas/events": "~10.0.0-alpha.15",
|
|
8394
|
+
"@geekmidas/logger": "~10.0.0-alpha.15",
|
|
8395
|
+
"@geekmidas/manifest": "~10.0.0-alpha.15",
|
|
8396
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.15",
|
|
8397
|
+
"@geekmidas/schema": "~10.0.0-alpha.15",
|
|
8398
|
+
"@geekmidas/services": "~10.0.0-alpha.15",
|
|
8399
|
+
"@geekmidas/storage": "~10.0.0-alpha.15",
|
|
8400
|
+
"@geekmidas/studio": "~10.0.0-alpha.15",
|
|
8401
|
+
"@geekmidas/telescope": "~10.0.0-alpha.15",
|
|
8402
|
+
"@geekmidas/testkit": "~10.0.0-alpha.15",
|
|
8404
8403
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
8405
8404
|
};
|
|
8406
8405
|
//#endregion
|
|
@@ -10467,7 +10466,6 @@ const apiTemplate = {
|
|
|
10467
10466
|
"@geekmidas/auth": GEEKMIDAS_VERSIONS["@geekmidas/auth"],
|
|
10468
10467
|
"@hono/node-server": DEPENDENCY_VERSIONS["@hono/node-server"],
|
|
10469
10468
|
hono: DEPENDENCY_VERSIONS.hono,
|
|
10470
|
-
pino: DEPENDENCY_VERSIONS.pino,
|
|
10471
10469
|
zod: DEPENDENCY_VERSIONS.zod
|
|
10472
10470
|
},
|
|
10473
10471
|
devDependencies: {
|
|
@@ -10928,7 +10926,6 @@ const minimalTemplate = {
|
|
|
10928
10926
|
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
|
|
10929
10927
|
"@hono/node-server": DEPENDENCY_VERSIONS["@hono/node-server"],
|
|
10930
10928
|
hono: DEPENDENCY_VERSIONS.hono,
|
|
10931
|
-
pino: DEPENDENCY_VERSIONS.pino,
|
|
10932
10929
|
zod: DEPENDENCY_VERSIONS.zod
|
|
10933
10930
|
},
|
|
10934
10931
|
devDependencies: {
|
|
@@ -11088,8 +11085,7 @@ const serverlessTemplate = {
|
|
|
11088
11085
|
"@geekmidas/rate-limit": GEEKMIDAS_VERSIONS["@geekmidas/rate-limit"],
|
|
11089
11086
|
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
|
|
11090
11087
|
"@hono/node-server": DEPENDENCY_VERSIONS["@hono/node-server"],
|
|
11091
|
-
hono: DEPENDENCY_VERSIONS.hono
|
|
11092
|
-
pino: DEPENDENCY_VERSIONS.pino
|
|
11088
|
+
hono: DEPENDENCY_VERSIONS.hono
|
|
11093
11089
|
},
|
|
11094
11090
|
devDependencies: {
|
|
11095
11091
|
"@biomejs/biome": DEPENDENCY_VERSIONS["@biomejs/biome"],
|
|
@@ -11250,8 +11246,7 @@ const workerTemplate = {
|
|
|
11250
11246
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
11251
11247
|
"@geekmidas/events": GEEKMIDAS_VERSIONS["@geekmidas/events"],
|
|
11252
11248
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
11253
|
-
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"]
|
|
11254
|
-
pino: DEPENDENCY_VERSIONS.pino
|
|
11249
|
+
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"]
|
|
11255
11250
|
},
|
|
11256
11251
|
devDependencies: {
|
|
11257
11252
|
"@biomejs/biome": DEPENDENCY_VERSIONS["@biomejs/biome"],
|
|
@@ -11588,6 +11583,7 @@ function generatePackageJson(options, template) {
|
|
|
11588
11583
|
const dependencies = { ...template.dependencies };
|
|
11589
11584
|
const devDependencies = { ...template.devDependencies };
|
|
11590
11585
|
const scripts = { ...template.scripts };
|
|
11586
|
+
if (options.loggerType === "pino") dependencies.pino = DEPENDENCY_VERSIONS.pino;
|
|
11591
11587
|
if (telescope) dependencies["@geekmidas/telescope"] = GEEKMIDAS_VERSIONS["@geekmidas/telescope"];
|
|
11592
11588
|
if (studio) dependencies["@geekmidas/studio"] = GEEKMIDAS_VERSIONS["@geekmidas/studio"];
|
|
11593
11589
|
const declares = !monorepo;
|
|
@@ -15631,16 +15627,6 @@ program.command("openapi").description("Generate OpenAPI specification from endp
|
|
|
15631
15627
|
process.exit(1);
|
|
15632
15628
|
}
|
|
15633
15629
|
});
|
|
15634
|
-
program.command("generate:react-query").description("Generate React Query hooks from OpenAPI specification").option("--input <path>", "Input OpenAPI spec file path", "openapi.json").option("--output <path>", "Output file path for generated hooks", "src/api/hooks.ts").option("--name <name>", "API name prefix for generated code", "API").action(async (options) => {
|
|
15635
|
-
try {
|
|
15636
|
-
const globalOptions = program.opts();
|
|
15637
|
-
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
15638
|
-
await generateReactQueryCommand(options);
|
|
15639
|
-
} catch (error) {
|
|
15640
|
-
console.error(formatError(error));
|
|
15641
|
-
process.exit(1);
|
|
15642
|
-
}
|
|
15643
|
-
});
|
|
15644
15630
|
program.command("docker").description("Generate Docker deployment files").option("--build", "Build Docker image after generating files").option("--push", "Push image to registry after building").option("--tag <tag>", "Image tag", "latest").option("--registry <registry>", "Container registry URL").option("--slim", "Use slim Dockerfile (assumes pre-built bundle exists)").option("--turbo", "Use turbo prune for monorepo optimization").option("--turbo-package <name>", "Package name for turbo prune").action(async (options) => {
|
|
15645
15631
|
try {
|
|
15646
15632
|
const globalOptions = program.opts();
|