@geekmidas/cli 10.0.0-alpha.43 → 10.0.0-alpha.45
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 +30 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +30 -30
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-Bsdp7rzP.mjs → migrate-BRklCm7b.mjs} +2 -2
- package/dist/{migrate-Bsdp7rzP.mjs.map → migrate-BRklCm7b.mjs.map} +1 -1
- package/dist/{migrate-BPIa3cxa.cjs → migrate-PJi4b1ga.cjs} +2 -2
- package/dist/{migrate-BPIa3cxa.cjs.map → migrate-PJi4b1ga.cjs.map} +1 -1
- package/dist/{ready-BCT8BQRq.cjs → ready-3RfHxdA0.cjs} +30 -5
- package/dist/{ready-BCT8BQRq.cjs.map → ready-3RfHxdA0.cjs.map} +1 -1
- package/dist/{ready-Bdh5SSXn.mjs → ready-ZqOuNvKD.mjs} +30 -5
- package/dist/{ready-Bdh5SSXn.mjs.map → ready-ZqOuNvKD.mjs.map} +1 -1
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/{workspace-Bt-pXoIi.mjs → workspace-BKytVCzb.mjs} +2 -2
- package/dist/{workspace-Bt-pXoIi.mjs.map → workspace-BKytVCzb.mjs.map} +1 -1
- package/dist/{workspace-BXS0S6vC.cjs → workspace-dV6f-3vv.cjs} +2 -2
- package/dist/{workspace-BXS0S6vC.cjs.map → workspace-dV6f-3vv.cjs.map} +1 -1
- package/package.json +14 -14
package/dist/index.mjs
CHANGED
|
@@ -5,10 +5,10 @@ import { d as parseModuleConfig, f as appKey, l as loadWorkspaceConfig, n as Not
|
|
|
5
5
|
import { D as assertDeployedStage, E as TEST_STAGE, O as deployedProblems, T as InvalidStages, a as getAppBuildOrder, b as getDeployTargetError, k as stageProblems, m as stripPublicPrefix, o as getAppGkmConfig, p as getPublicEnvPrefix, t as allConstructGlobs, x as isDeployTargetSupported } from "./workspace-DOmIhiau.mjs";
|
|
6
6
|
import { a as withCustomSecret, i as toEmbeddableSecrets, n as maskPassword, t as initStageSecrets } from "./storage-BzaUxmqe.mjs";
|
|
7
7
|
import { a as getKeyPath, i as FileSecretsStore, n as secretsStoreFor } from "./store-DeGATCS-.mjs";
|
|
8
|
-
import { C as createEntryWrapper, D as loadSecretsForApp, E as loadEnvFiles, O as prepareEntryCredentials, S as createCredentialsPreload, T as isPortAvailable, _ as primaryPortKey, a as reconcileWorkspace, b as providerOf, c as LOCAL_CA_PATH, d as postgresDatabaseNames, f as quoteIdentifier, g as fakeKey, h as rootSite, i as derivedContainers, l as forgetState, m as resourceName, n as backendsOf, p as pgClient, r as constructGlobs, s as COMPOSE_PATH, t as FAKE_ENV, u as applyPostgres, v as cacheBackendFor, w as findAvailablePort, x as storageBackendFor, y as eventsBackendFor } from "./workspace-
|
|
8
|
+
import { C as createEntryWrapper, D as loadSecretsForApp, E as loadEnvFiles, O as prepareEntryCredentials, S as createCredentialsPreload, T as isPortAvailable, _ as primaryPortKey, a as reconcileWorkspace, b as providerOf, c as LOCAL_CA_PATH, d as postgresDatabaseNames, f as quoteIdentifier, g as fakeKey, h as rootSite, i as derivedContainers, l as forgetState, m as resourceName, n as backendsOf, p as pgClient, r as constructGlobs, s as COMPOSE_PATH, t as FAKE_ENV, u as applyPostgres, v as cacheBackendFor, w as findAvailablePort, x as storageBackendFor, y as eventsBackendFor } from "./workspace-BKytVCzb.mjs";
|
|
9
9
|
import { n as EndpointGenerator, r as runtimeFor } from "./OpenApiTsGenerator-CEh3EKN3.mjs";
|
|
10
10
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
11
|
-
import { a as writeTestHarness, c as driversFor, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, o as SubscriberGenerator, s as cacheBackendsIn, t as TEST_READY_ENV } from "./ready-
|
|
11
|
+
import { a as writeTestHarness, c as driversFor, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, o as SubscriberGenerator, s as cacheBackendsIn, t as TEST_READY_ENV } from "./ready-ZqOuNvKD.mjs";
|
|
12
12
|
import { i as withRoutes, r as withCompute } from "./emit-Bzq7JsMP.mjs";
|
|
13
13
|
import { createRequire } from "node:module";
|
|
14
14
|
import { Command } from "commander";
|
|
@@ -40,7 +40,7 @@ import { Queue } from "@geekmidas/constructs/queue";
|
|
|
40
40
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
41
41
|
import { lookup } from "node:dns/promises";
|
|
42
42
|
//#region package.json
|
|
43
|
-
var version = "10.0.0-alpha.
|
|
43
|
+
var version = "10.0.0-alpha.45";
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/auth/credentials.ts
|
|
46
46
|
/**
|
|
@@ -1565,9 +1565,9 @@ async function workspaceDevCommand(workspace, options) {
|
|
|
1565
1565
|
const fakes = options.fake ? await serveFakes(reconciled.fakes, reconciled.ports) : [];
|
|
1566
1566
|
for (const { id, port } of fakes) logger$10.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
1567
1567
|
if (options.migrate || options.seed) {
|
|
1568
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
1568
|
+
const { prepareDevDatabases } = await import("./migrate-BRklCm7b.mjs");
|
|
1569
1569
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
1570
|
-
} else await import("./migrate-
|
|
1570
|
+
} else await import("./migrate-BRklCm7b.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
1571
1571
|
logger$10.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
1572
1572
|
});
|
|
1573
1573
|
const appUrls = {};
|
|
@@ -9322,26 +9322,26 @@ function loadPackageJson() {
|
|
|
9322
9322
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
9323
9323
|
*/
|
|
9324
9324
|
const GEEKMIDAS_VERSIONS = {
|
|
9325
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
9326
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
9327
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
9328
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
9329
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
9330
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
9331
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
9332
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
9333
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
9334
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
9335
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
9336
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
9337
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
9338
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
9339
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
9340
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
9341
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
9342
|
-
"@geekmidas/studio": "~10.0.0-alpha.
|
|
9343
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
9344
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
9325
|
+
"@geekmidas/audit": "~10.0.0-alpha.45",
|
|
9326
|
+
"@geekmidas/auth": "~10.0.0-alpha.45",
|
|
9327
|
+
"@geekmidas/cache": "~10.0.0-alpha.45",
|
|
9328
|
+
"@geekmidas/client": "~10.0.0-alpha.45",
|
|
9329
|
+
"@geekmidas/cloud": "~10.0.0-alpha.45",
|
|
9330
|
+
"@geekmidas/constructs": "~10.0.0-alpha.45",
|
|
9331
|
+
"@geekmidas/db": "~10.0.0-alpha.45",
|
|
9332
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.45",
|
|
9333
|
+
"@geekmidas/envkit": "~10.0.0-alpha.45",
|
|
9334
|
+
"@geekmidas/errors": "~10.0.0-alpha.45",
|
|
9335
|
+
"@geekmidas/events": "~10.0.0-alpha.45",
|
|
9336
|
+
"@geekmidas/logger": "~10.0.0-alpha.45",
|
|
9337
|
+
"@geekmidas/manifest": "~10.0.0-alpha.45",
|
|
9338
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.45",
|
|
9339
|
+
"@geekmidas/schema": "~10.0.0-alpha.45",
|
|
9340
|
+
"@geekmidas/services": "~10.0.0-alpha.45",
|
|
9341
|
+
"@geekmidas/storage": "~10.0.0-alpha.45",
|
|
9342
|
+
"@geekmidas/studio": "~10.0.0-alpha.45",
|
|
9343
|
+
"@geekmidas/telescope": "~10.0.0-alpha.45",
|
|
9344
|
+
"@geekmidas/testkit": "~10.0.0-alpha.45",
|
|
9345
9345
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
9346
9346
|
};
|
|
9347
9347
|
//#endregion
|
|
@@ -16090,7 +16090,7 @@ function testDatabases(reconciled) {
|
|
|
16090
16090
|
* starts without the reference data the app needs.
|
|
16091
16091
|
*/
|
|
16092
16092
|
async function migrateTestStage(workspace, env) {
|
|
16093
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
16093
|
+
const { migrateAndSeed } = await import("./migrate-BRklCm7b.mjs");
|
|
16094
16094
|
const { discover } = await import("./discover-BLhf7V_J.mjs").then((n) => n.n);
|
|
16095
16095
|
const sources = {};
|
|
16096
16096
|
const manifest = await discover({
|
|
@@ -16537,7 +16537,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
16537
16537
|
try {
|
|
16538
16538
|
const globalOptions = program.opts();
|
|
16539
16539
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16540
|
-
const { migrateCommand } = await import("./migrate-
|
|
16540
|
+
const { migrateCommand } = await import("./migrate-BRklCm7b.mjs");
|
|
16541
16541
|
await migrateCommand({
|
|
16542
16542
|
...options,
|
|
16543
16543
|
...construct ? { construct } : {}
|
|
@@ -16551,7 +16551,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
16551
16551
|
try {
|
|
16552
16552
|
const globalOptions = program.opts();
|
|
16553
16553
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16554
|
-
const { seedCommand } = await import("./migrate-
|
|
16554
|
+
const { seedCommand } = await import("./migrate-BRklCm7b.mjs");
|
|
16555
16555
|
await seedCommand({
|
|
16556
16556
|
...options,
|
|
16557
16557
|
...construct ? { construct } : {}
|
|
@@ -16565,7 +16565,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
16565
16565
|
try {
|
|
16566
16566
|
const globalOptions = program.opts();
|
|
16567
16567
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
16568
|
-
const { migrationCommand } = await import("./migrate-
|
|
16568
|
+
const { migrationCommand } = await import("./migrate-BRklCm7b.mjs");
|
|
16569
16569
|
await migrationCommand({
|
|
16570
16570
|
construct,
|
|
16571
16571
|
...name ? { name } : {}
|
|
@@ -16704,7 +16704,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
16704
16704
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
16705
16705
|
process.exit(1);
|
|
16706
16706
|
}
|
|
16707
|
-
const { derivedContainers } = await import("./workspace-
|
|
16707
|
+
const { derivedContainers } = await import("./workspace-BKytVCzb.mjs").then((n) => n.o);
|
|
16708
16708
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
16709
16709
|
if (!result) {
|
|
16710
16710
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|