@geekmidas/cli 9.2.0 → 9.2.1
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/CHANGELOG.md +25 -0
- package/dist/{config-Bbu1JKvf.mjs → config-D7AVl-qm.mjs} +2 -2
- package/dist/{config-Bbu1JKvf.mjs.map → config-D7AVl-qm.mjs.map} +1 -1
- package/dist/{config-DujV8DbR.cjs → config-DcxHEHPB.cjs} +2 -2
- package/dist/{config-DujV8DbR.cjs.map → config-DcxHEHPB.cjs.map} +1 -1
- package/dist/config.cjs +2 -2
- package/dist/config.mjs +2 -2
- package/dist/index.cjs +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +26 -26
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-C5rXJTtj.mjs → openapi-BlIiUahn.mjs} +7 -2
- package/dist/{openapi-C5rXJTtj.mjs.map → openapi-BlIiUahn.mjs.map} +1 -1
- package/dist/{openapi-B_IGZDVu.cjs → openapi-C-YgZHyd.cjs} +7 -2
- package/dist/{openapi-B_IGZDVu.cjs.map → openapi-C-YgZHyd.cjs.map} +1 -1
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.mjs +3 -3
- package/dist/{setup-DDXUXzzl.mjs → setup-A-BX8JUm.mjs} +3 -3
- package/dist/{setup-DDXUXzzl.mjs.map → setup-A-BX8JUm.mjs.map} +1 -1
- package/dist/setup-BDB9lvEI.cjs +8 -0
- package/dist/{setup-Dh-B7YTX.mjs → setup-BzftAUve.mjs} +3 -3
- package/dist/{setup-WZ-xqAQO.cjs → setup-C2UhXWhN.cjs} +3 -3
- package/dist/{setup-WZ-xqAQO.cjs.map → setup-C2UhXWhN.cjs.map} +1 -1
- package/dist/types-BWQDiooe.d.cts.map +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/workspace-CqXfzYyp.cjs +6704 -0
- package/dist/workspace-CqXfzYyp.cjs.map +1 -0
- package/dist/workspace-DrBWGtI7.mjs +6579 -0
- package/dist/workspace-DrBWGtI7.mjs.map +1 -0
- package/package.json +10 -10
- package/src/generators/OpenApiTsGenerator.ts +21 -0
- package/src/generators/__tests__/Generator.bustCache.spec.ts +16 -8
- package/src/init/versions.ts +19 -19
- package/dist/setup-DLwhfyt-.cjs +0 -8
- package/dist/workspace-CQTT7HJQ.cjs +0 -4361
- package/dist/workspace-CQTT7HJQ.cjs.map +0 -1
- package/dist/workspace-D-37Ylqo.mjs +0 -4236
- package/dist/workspace-D-37Ylqo.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env -S npx tsx
|
|
2
2
|
import { __require } from "./chunk-Duj1WY3L.mjs";
|
|
3
|
-
import { getAppBuildOrder, getDependencyEnvVars, getDeployTargetError, getPublicEnvPrefix, isDeployTargetSupported, stripPublicPrefix } from "./workspace-
|
|
4
|
-
import { getAppNameFromCwd, loadAppConfig, loadConfig, loadWorkspaceConfig, parseModuleConfig } from "./config-
|
|
3
|
+
import { getAppBuildOrder, getDependencyEnvVars, getDeployTargetError, getPublicEnvPrefix, isDeployTargetSupported, stripPublicPrefix } from "./workspace-DrBWGtI7.mjs";
|
|
4
|
+
import { getAppNameFromCwd, loadAppConfig, loadConfig, loadWorkspaceConfig, parseModuleConfig } from "./config-D7AVl-qm.mjs";
|
|
5
5
|
import { getCredentialsPath, getDokployCredentials, getDokployRegistryId, getDokployToken, removeDokployCredentials, storeDokployCredentials, storeDokployRegistryId } from "./credentials-s1kLcIzK.mjs";
|
|
6
6
|
import { createStageSecrets, generateDbPassword, generateDbUrl, generateFullstackCustomSecrets, rotateServicePassword } from "./fullstack-secrets-l8s3II_H.mjs";
|
|
7
7
|
import { getKeyPath, maskPassword, readStageSecrets, secretsExist, setCustomSecret, toEmbeddableSecrets, writeStageSecrets } from "./storage-dbb9RyBl.mjs";
|
|
8
|
-
import { createCredentialsPreload, createEntryWrapper, findAvailablePort, isPortAvailable, loadEnvFiles, loadSecretsForApp, prepareEntryCredentials, resolveServicePorts, rewriteUrlsWithPorts, setupCommand, startWorkspaceServices } from "./setup-
|
|
9
|
-
import { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, isPartitionedRoutes, normalizeRoutes, openapiCommand, resolveOpenApiConfig } from "./openapi-
|
|
8
|
+
import { createCredentialsPreload, createEntryWrapper, findAvailablePort, isPortAvailable, loadEnvFiles, loadSecretsForApp, prepareEntryCredentials, resolveServicePorts, rewriteUrlsWithPorts, setupCommand, startWorkspaceServices } from "./setup-A-BX8JUm.mjs";
|
|
9
|
+
import { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, isPartitionedRoutes, normalizeRoutes, openapiCommand, resolveOpenApiConfig } from "./openapi-BlIiUahn.mjs";
|
|
10
10
|
import { DokployApi } from "./dokploy-api-sfZFlWuE.mjs";
|
|
11
11
|
import { encryptSecrets } from "./encryption-CO5Q4Bhf.mjs";
|
|
12
12
|
import { CachedStateProvider } from "./CachedStateProvider-CzyFct42.mjs";
|
|
@@ -36,7 +36,7 @@ import prompts from "prompts";
|
|
|
36
36
|
|
|
37
37
|
//#region package.json
|
|
38
38
|
var name = "@geekmidas/cli";
|
|
39
|
-
var version = "9.
|
|
39
|
+
var version = "9.2.0";
|
|
40
40
|
var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
|
|
41
41
|
var private$1 = false;
|
|
42
42
|
var type = "module";
|
|
@@ -138,7 +138,7 @@ var devDependencies = {
|
|
|
138
138
|
"@types/prompts": "~2.4.9",
|
|
139
139
|
"typescript": "^5.8.2",
|
|
140
140
|
"vitest": "^3.2.4",
|
|
141
|
-
"zod": "~4.
|
|
141
|
+
"zod": "~4.6.6"
|
|
142
142
|
};
|
|
143
143
|
var peerDependencies = { "@geekmidas/telescope": "workspace:^" };
|
|
144
144
|
var peerDependenciesMeta = { "@geekmidas/telescope": { "optional": true } };
|
|
@@ -6897,25 +6897,25 @@ const CLI_VERSION = `~${pkg.version}`;
|
|
|
6897
6897
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
6898
6898
|
*/
|
|
6899
6899
|
const GEEKMIDAS_VERSIONS = {
|
|
6900
|
-
"@geekmidas/audit": "~9.
|
|
6901
|
-
"@geekmidas/auth": "~9.
|
|
6902
|
-
"@geekmidas/cache": "~9.
|
|
6903
|
-
"@geekmidas/client": "~9.
|
|
6904
|
-
"@geekmidas/cloud": "~9.
|
|
6905
|
-
"@geekmidas/constructs": "~9.
|
|
6906
|
-
"@geekmidas/db": "~9.
|
|
6907
|
-
"@geekmidas/emailkit": "~9.
|
|
6908
|
-
"@geekmidas/envkit": "~9.
|
|
6909
|
-
"@geekmidas/errors": "~9.
|
|
6910
|
-
"@geekmidas/events": "~9.
|
|
6911
|
-
"@geekmidas/logger": "~9.
|
|
6912
|
-
"@geekmidas/rate-limit": "~9.
|
|
6913
|
-
"@geekmidas/schema": "~9.
|
|
6914
|
-
"@geekmidas/services": "~9.
|
|
6915
|
-
"@geekmidas/storage": "~9.
|
|
6916
|
-
"@geekmidas/studio": "~9.
|
|
6917
|
-
"@geekmidas/telescope": "~9.
|
|
6918
|
-
"@geekmidas/testkit": "~9.
|
|
6900
|
+
"@geekmidas/audit": "~9.2.0",
|
|
6901
|
+
"@geekmidas/auth": "~9.2.0",
|
|
6902
|
+
"@geekmidas/cache": "~9.2.0",
|
|
6903
|
+
"@geekmidas/client": "~9.2.0",
|
|
6904
|
+
"@geekmidas/cloud": "~9.2.0",
|
|
6905
|
+
"@geekmidas/constructs": "~9.2.0",
|
|
6906
|
+
"@geekmidas/db": "~9.2.0",
|
|
6907
|
+
"@geekmidas/emailkit": "~9.2.0",
|
|
6908
|
+
"@geekmidas/envkit": "~9.2.0",
|
|
6909
|
+
"@geekmidas/errors": "~9.2.0",
|
|
6910
|
+
"@geekmidas/events": "~9.2.0",
|
|
6911
|
+
"@geekmidas/logger": "~9.2.0",
|
|
6912
|
+
"@geekmidas/rate-limit": "~9.2.0",
|
|
6913
|
+
"@geekmidas/schema": "~9.2.0",
|
|
6914
|
+
"@geekmidas/services": "~9.2.0",
|
|
6915
|
+
"@geekmidas/storage": "~9.2.0",
|
|
6916
|
+
"@geekmidas/studio": "~9.2.0",
|
|
6917
|
+
"@geekmidas/telescope": "~9.2.0",
|
|
6918
|
+
"@geekmidas/testkit": "~9.2.0",
|
|
6919
6919
|
"@geekmidas/cli": CLI_VERSION
|
|
6920
6920
|
};
|
|
6921
6921
|
|
|
@@ -12868,7 +12868,7 @@ async function testCommand(options = {}) {
|
|
|
12868
12868
|
console.log(`\n🧪 Running tests with ${stage} environment...\n`);
|
|
12869
12869
|
const autoSetup = options.autoSetup || Boolean(process.env.GKM_AUTO_SETUP);
|
|
12870
12870
|
if (autoSetup) {
|
|
12871
|
-
const { ensureStageSecrets } = await import("./setup-
|
|
12871
|
+
const { ensureStageSecrets } = await import("./setup-BzftAUve.mjs");
|
|
12872
12872
|
const generated = await ensureStageSecrets(stage, cwd);
|
|
12873
12873
|
if (generated) console.log(` 🔐 Generated fresh ${stage} secrets (auto-setup)`);
|
|
12874
12874
|
}
|