@geekmidas/cli 1.10.13 → 1.10.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/CHANGELOG.md +12 -0
- package/dist/{bundler-Di5Gz9Ou.mjs → bundler-BWsVDer6.mjs} +2 -2
- package/dist/{bundler-Di5Gz9Ou.mjs.map → bundler-BWsVDer6.mjs.map} +1 -1
- package/dist/{bundler-DVJkwNMQ.cjs → bundler-Drh5KoN5.cjs} +2 -2
- package/dist/{bundler-DVJkwNMQ.cjs.map → bundler-Drh5KoN5.cjs.map} +1 -1
- package/dist/index.cjs +20 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +20 -16
- package/dist/index.mjs.map +1 -1
- package/dist/{storage-6GBoLCYF.cjs → storage-Bu44pwPJ.cjs} +4 -2
- package/dist/{storage-6GBoLCYF.cjs.map → storage-Bu44pwPJ.cjs.map} +1 -1
- package/dist/{storage-BFqrVsip.mjs → storage-CauTheT9.mjs} +1 -1
- package/dist/{storage-DCqjCiDn.cjs → storage-DpqzcjQ5.cjs} +1 -1
- package/dist/{storage-DMf420PP.mjs → storage-clMAp4sc.mjs} +4 -2
- package/dist/{storage-DMf420PP.mjs.map → storage-clMAp4sc.mjs.map} +1 -1
- package/dist/{sync-DIGGOxCw.cjs → sync-BeiI5rFC.cjs} +2 -2
- package/dist/{sync-DIGGOxCw.cjs.map → sync-BeiI5rFC.cjs.map} +1 -1
- package/dist/{sync-DjD_TeNX.mjs → sync-BkalF65h.mjs} +1 -1
- package/dist/sync-Bp8xRcuQ.cjs +4 -0
- package/dist/{sync-Do9O7QZ8.mjs → sync-CWJ6tL0s.mjs} +2 -2
- package/dist/{sync-Do9O7QZ8.mjs.map → sync-CWJ6tL0s.mjs.map} +1 -1
- package/package.json +4 -4
- package/src/dev/__tests__/index.spec.ts +4 -4
- package/src/docker/__tests__/compose.spec.ts +2 -2
- package/src/docker/compose.ts +8 -4
- package/src/init/__tests__/generators.spec.ts +2 -4
- package/src/init/generators/docker.ts +2 -2
- package/src/secrets/storage.ts +2 -0
- package/src/test/__tests__/__fixtures__/workspace.ts +2 -2
- package/dist/sync-BVNso6AA.cjs +0 -4
package/dist/index.mjs
CHANGED
|
@@ -4,13 +4,13 @@ import { getAppBuildOrder, getDependencyEnvVars, getDeployTargetError, isDeployT
|
|
|
4
4
|
import { getAppNameFromCwd, loadAppConfig, loadConfig, loadWorkspaceAppInfo, loadWorkspaceConfig, parseModuleConfig } from "./config-jsRYHOHU.mjs";
|
|
5
5
|
import { getCredentialsPath, getDokployCredentials, getDokployRegistryId, getDokployToken, removeDokployCredentials, storeDokployCredentials, storeDokployRegistryId } from "./credentials-s1kLcIzK.mjs";
|
|
6
6
|
import { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, copyAllClients, copyClientToFrontends, generateOpenApi, getBackendOpenApiPath, isPartitionedRoutes, normalizeRoutes, openapiCommand, resolveOpenApiConfig } from "./openapi-DenF-okj.mjs";
|
|
7
|
-
import { getKeyPath, maskPassword, readStageSecrets, secretsExist, setCustomSecret, toEmbeddableSecrets, writeStageSecrets } from "./storage-
|
|
7
|
+
import { getKeyPath, maskPassword, readStageSecrets, secretsExist, setCustomSecret, toEmbeddableSecrets, writeStageSecrets } from "./storage-clMAp4sc.mjs";
|
|
8
8
|
import { DokployApi } from "./dokploy-api-2ldYoN3i.mjs";
|
|
9
9
|
import { encryptSecrets } from "./encryption-BOH5M-f-.mjs";
|
|
10
10
|
import { CachedStateProvider } from "./CachedStateProvider-BDq5WqSy.mjs";
|
|
11
11
|
import { createStageSecrets, generateConnectionUrls, generateDbPassword, generateDbUrl, generateFullstackCustomSecrets, generateServiceCredentials, rotateServicePassword, writeDockerEnvFromSecrets } from "./fullstack-secrets-BIFFv4UZ.mjs";
|
|
12
12
|
import { generateReactQueryCommand } from "./openapi-react-query-C4UdILaI.mjs";
|
|
13
|
-
import { isSSMConfigured, pullSecrets, pushSecrets } from "./sync-
|
|
13
|
+
import { isSSMConfigured, pullSecrets, pushSecrets } from "./sync-CWJ6tL0s.mjs";
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
import { copyFileSync, existsSync, readFileSync, unlinkSync } from "node:fs";
|
|
16
16
|
import { basename, dirname, join, parse, relative, resolve } from "node:path";
|
|
@@ -35,7 +35,7 @@ import prompts from "prompts";
|
|
|
35
35
|
|
|
36
36
|
//#region package.json
|
|
37
37
|
var name = "@geekmidas/cli";
|
|
38
|
-
var version = "1.10.
|
|
38
|
+
var version = "1.10.14";
|
|
39
39
|
var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
|
|
40
40
|
var private$1 = false;
|
|
41
41
|
var type = "module";
|
|
@@ -2220,7 +2220,7 @@ async function buildForProvider(provider, context, rootOutputDir, endpointGenera
|
|
|
2220
2220
|
let masterKey;
|
|
2221
2221
|
if (context.production?.bundle && !skipBundle) {
|
|
2222
2222
|
logger$9.log(`\n📦 Bundling production server...`);
|
|
2223
|
-
const { bundleServer } = await import("./bundler-
|
|
2223
|
+
const { bundleServer } = await import("./bundler-BWsVDer6.mjs");
|
|
2224
2224
|
const allConstructs = [
|
|
2225
2225
|
...endpoints.map((e) => e.construct),
|
|
2226
2226
|
...functions.map((f) => f.construct),
|
|
@@ -2957,6 +2957,8 @@ services:
|
|
|
2957
2957
|
- SMTP_PORT=\${SMTP_PORT:-1025}
|
|
2958
2958
|
- SMTP_USER=\${SMTP_USER:-${imageName}}
|
|
2959
2959
|
- SMTP_PASS=\${SMTP_PASS:-${imageName}}
|
|
2960
|
+
- SMTP_SECURE=\${SMTP_SECURE:-false}
|
|
2961
|
+
- MAIL_FROM=\${MAIL_FROM:-noreply@localhost}
|
|
2960
2962
|
`;
|
|
2961
2963
|
yaml += ` healthcheck:
|
|
2962
2964
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:${port}${healthCheckPath}"]
|
|
@@ -3064,8 +3066,8 @@ services:
|
|
|
3064
3066
|
environment:
|
|
3065
3067
|
MP_SMTP_AUTH: \${SMTP_USER:-${imageName}}:\${SMTP_PASS:-${imageName}}
|
|
3066
3068
|
ports:
|
|
3067
|
-
- "\${
|
|
3068
|
-
- "\${
|
|
3069
|
+
- "\${MAILPIT_PORT:-8025}:8025" # Web UI / API
|
|
3070
|
+
- "\${SMTP_PORT:-1025}:1025" # SMTP
|
|
3069
3071
|
healthcheck:
|
|
3070
3072
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8025"]
|
|
3071
3073
|
interval: 5s
|
|
@@ -3199,8 +3201,8 @@ services:
|
|
|
3199
3201
|
environment:
|
|
3200
3202
|
MP_SMTP_AUTH: \${SMTP_USER:-${workspace.name}}:\${SMTP_PASS:-${workspace.name}}
|
|
3201
3203
|
ports:
|
|
3202
|
-
- "\${
|
|
3203
|
-
- "\${
|
|
3204
|
+
- "\${MAILPIT_PORT:-8025}:8025" # Web UI / API
|
|
3205
|
+
- "\${SMTP_PORT:-1025}:1025" # SMTP
|
|
3204
3206
|
healthcheck:
|
|
3205
3207
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8025"]
|
|
3206
3208
|
interval: 5s
|
|
@@ -3314,6 +3316,8 @@ function generateAppService(appName, app, allApps, options) {
|
|
|
3314
3316
|
- SMTP_PORT=\${SMTP_PORT:-1025}
|
|
3315
3317
|
- SMTP_USER=\${SMTP_USER:-${projectName}}
|
|
3316
3318
|
- SMTP_PASS=\${SMTP_PASS:-${projectName}}
|
|
3319
|
+
- SMTP_SECURE=\${SMTP_SECURE:-false}
|
|
3320
|
+
- MAIL_FROM=\${MAIL_FROM:-noreply@localhost}
|
|
3317
3321
|
`;
|
|
3318
3322
|
}
|
|
3319
3323
|
yaml += ` healthcheck:
|
|
@@ -6372,7 +6376,7 @@ async function deployCommand(options) {
|
|
|
6372
6376
|
dokployConfig = setupResult.config;
|
|
6373
6377
|
finalRegistry = dokployConfig.registry ?? dockerConfig.registry;
|
|
6374
6378
|
if (setupResult.serviceUrls) {
|
|
6375
|
-
const { readStageSecrets: readStageSecrets$1, writeStageSecrets: writeStageSecrets$1, initStageSecrets } = await import("./storage-
|
|
6379
|
+
const { readStageSecrets: readStageSecrets$1, writeStageSecrets: writeStageSecrets$1, initStageSecrets } = await import("./storage-CauTheT9.mjs");
|
|
6376
6380
|
let secrets = await readStageSecrets$1(stage);
|
|
6377
6381
|
if (!secrets) {
|
|
6378
6382
|
logger$3.log(` Creating secrets file for stage "${stage}"...`);
|
|
@@ -7219,8 +7223,8 @@ function generateDockerFiles(options, template, dbApps) {
|
|
|
7219
7223
|
container_name: ${options.name}-mailpit
|
|
7220
7224
|
restart: unless-stopped
|
|
7221
7225
|
ports:
|
|
7222
|
-
- '\${
|
|
7223
|
-
- '\${
|
|
7226
|
+
- '\${SMTP_PORT:-1025}:1025'
|
|
7227
|
+
- '\${MAILPIT_PORT:-8025}:8025'
|
|
7224
7228
|
environment:
|
|
7225
7229
|
MP_SMTP_AUTH: \${SMTP_USER:-${options.name}}:\${SMTP_PASS:-${options.name}}`);
|
|
7226
7230
|
if (options.services?.storage) {
|
|
@@ -12093,9 +12097,9 @@ program.command("secrets:push").description("Push secrets to remote provider (SS
|
|
|
12093
12097
|
const globalOptions = program.opts();
|
|
12094
12098
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12095
12099
|
const { loadWorkspaceConfig: loadWorkspaceConfig$1 } = await import("./config.mjs");
|
|
12096
|
-
const { pushSecrets: pushSecrets$1 } = await import("./sync-
|
|
12100
|
+
const { pushSecrets: pushSecrets$1 } = await import("./sync-BkalF65h.mjs");
|
|
12097
12101
|
const { reconcileMissingSecrets } = await import("./reconcile-DxTEausy.mjs");
|
|
12098
|
-
const { readStageSecrets: readStageSecrets$1, writeStageSecrets: writeStageSecrets$1 } = await import("./storage-
|
|
12102
|
+
const { readStageSecrets: readStageSecrets$1, writeStageSecrets: writeStageSecrets$1 } = await import("./storage-CauTheT9.mjs");
|
|
12099
12103
|
const { workspace } = await loadWorkspaceConfig$1();
|
|
12100
12104
|
const secrets = await readStageSecrets$1(options.stage, workspace.root);
|
|
12101
12105
|
if (secrets) {
|
|
@@ -12118,8 +12122,8 @@ program.command("secrets:pull").description("Pull secrets from remote provider (
|
|
|
12118
12122
|
const globalOptions = program.opts();
|
|
12119
12123
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12120
12124
|
const { loadWorkspaceConfig: loadWorkspaceConfig$1 } = await import("./config.mjs");
|
|
12121
|
-
const { pullSecrets: pullSecrets$1 } = await import("./sync-
|
|
12122
|
-
const { writeStageSecrets: writeStageSecrets$1 } = await import("./storage-
|
|
12125
|
+
const { pullSecrets: pullSecrets$1 } = await import("./sync-BkalF65h.mjs");
|
|
12126
|
+
const { writeStageSecrets: writeStageSecrets$1 } = await import("./storage-CauTheT9.mjs");
|
|
12123
12127
|
const { reconcileMissingSecrets } = await import("./reconcile-DxTEausy.mjs");
|
|
12124
12128
|
const { workspace } = await loadWorkspaceConfig$1();
|
|
12125
12129
|
let secrets = await pullSecrets$1(options.stage, workspace);
|
|
@@ -12146,7 +12150,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12146
12150
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12147
12151
|
const { loadWorkspaceConfig: loadWorkspaceConfig$1 } = await import("./config.mjs");
|
|
12148
12152
|
const { reconcileMissingSecrets } = await import("./reconcile-DxTEausy.mjs");
|
|
12149
|
-
const { readStageSecrets: readStageSecrets$1, writeStageSecrets: writeStageSecrets$1 } = await import("./storage-
|
|
12153
|
+
const { readStageSecrets: readStageSecrets$1, writeStageSecrets: writeStageSecrets$1 } = await import("./storage-CauTheT9.mjs");
|
|
12150
12154
|
const { workspace } = await loadWorkspaceConfig$1();
|
|
12151
12155
|
const secrets = await readStageSecrets$1(options.stage, workspace.root);
|
|
12152
12156
|
if (!secrets) {
|