@geekmidas/cli 10.0.0-alpha.50 → 10.0.0-alpha.52
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/{backends-B9V2XD2M.cjs → backends-BXcwhb7p.cjs} +2 -2
- package/dist/{backends-B9V2XD2M.cjs.map → backends-BXcwhb7p.cjs.map} +1 -1
- package/dist/{backends-CSuLl0YP.mjs → backends-CLq1wlQf.mjs} +2 -2
- package/dist/{backends-CSuLl0YP.mjs.map → backends-CLq1wlQf.mjs.map} +1 -1
- package/dist/{config-CsYSyUya.cjs → config-Cvr5fCbn.cjs} +3 -2
- package/dist/config-Cvr5fCbn.cjs.map +1 -0
- package/dist/{config-D8J5rrTb.mjs → config-SOkDH-n1.mjs} +3 -2
- package/dist/config-SOkDH-n1.mjs.map +1 -0
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +2 -2
- package/dist/{encryption-DyQnPsZN.mjs → encryption-Cv-Ej9vR.mjs} +4 -4
- package/dist/{encryption-DyQnPsZN.mjs.map → encryption-Cv-Ej9vR.mjs.map} +1 -1
- package/dist/{encryption-C7OGMve_.cjs → encryption-DCsdx4Po.cjs} +4 -4
- package/dist/{encryption-C7OGMve_.cjs.map → encryption-DCsdx4Po.cjs.map} +1 -1
- package/dist/{github-BrI1tv6u.cjs → github-BGx4U61b.cjs} +3 -3
- package/dist/{github-BrI1tv6u.cjs.map → github-BGx4U61b.cjs.map} +1 -1
- package/dist/{github-BfpadQWQ.mjs → github-U_frvZgD.mjs} +3 -3
- package/dist/{github-BfpadQWQ.mjs.map → github-U_frvZgD.mjs.map} +1 -1
- package/dist/{index-BQhJXpaQ.d.mts → index-DYh5TrsZ.d.mts} +2 -2
- package/dist/{index-BQhJXpaQ.d.mts.map → index-DYh5TrsZ.d.mts.map} +1 -1
- package/dist/{index-DHJePE0y.d.cts → index-fU3qHy7c.d.cts} +2 -2
- package/dist/{index-DHJePE0y.d.cts.map → index-fU3qHy7c.d.cts.map} +1 -1
- package/dist/index.cjs +95 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +95 -83
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-CNlew9Ek.cjs → migrate-DCxK1NRd.cjs} +4 -4
- package/dist/{migrate-CNlew9Ek.cjs.map → migrate-DCxK1NRd.cjs.map} +1 -1
- package/dist/{migrate-B00XpVaO.mjs → migrate-DmabhO_N.mjs} +4 -4
- package/dist/{migrate-B00XpVaO.mjs.map → migrate-DmabhO_N.mjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/{ready-lr2Fm-ep.cjs → ready-ClUpTxoL.cjs} +14 -2
- package/dist/ready-ClUpTxoL.cjs.map +1 -0
- package/dist/{ready-WfT-eWlm.mjs → ready-tQLNHNya.mjs} +15 -3
- package/dist/ready-tQLNHNya.mjs.map +1 -0
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{types-BbrNu83u.d.mts → types-CT0ymlBk.d.mts} +25 -24
- package/dist/{types-BbrNu83u.d.mts.map → types-CT0ymlBk.d.mts.map} +1 -1
- package/dist/{types-DNqEsctD.d.cts → types-DYDT4FfE.d.cts} +25 -24
- package/dist/{types-DNqEsctD.d.cts.map → types-DYDT4FfE.d.cts.map} +1 -1
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-j6ZxvJqq.cjs → workspace-BEGUDNwK.cjs} +17 -6
- package/dist/workspace-BEGUDNwK.cjs.map +1 -0
- package/dist/{workspace-DEibcoBe.cjs → workspace-BcCiLzTO.cjs} +4 -4
- package/dist/{workspace-DEibcoBe.cjs.map → workspace-BcCiLzTO.cjs.map} +1 -1
- package/dist/{workspace-DNzWgM1J.mjs → workspace-bOsks1uk.mjs} +4 -4
- package/dist/{workspace-DNzWgM1J.mjs.map → workspace-bOsks1uk.mjs.map} +1 -1
- package/dist/{workspace-BsbxbqV-.mjs → workspace-fa5H6l7D.mjs} +17 -6
- package/dist/workspace-fa5H6l7D.mjs.map +1 -0
- package/package.json +14 -14
- package/dist/config-CsYSyUya.cjs.map +0 -1
- package/dist/config-D8J5rrTb.mjs.map +0 -1
- package/dist/ready-WfT-eWlm.mjs.map +0 -1
- package/dist/ready-lr2Fm-ep.cjs.map +0 -1
- package/dist/workspace-BsbxbqV-.mjs.map +0 -1
- package/dist/workspace-j6ZxvJqq.cjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
2
|
import { t as discover } from "./discover-Cf2jAcgF.mjs";
|
|
3
|
-
import { c as loadWorkspaceAppInfo, f as appKey, l as loadWorkspaceConfig, r as NotInAnApp, t as ConfigNotFound } from "./config-
|
|
4
|
-
import { E as TEST_STAGE, t as allConstructGlobs } from "./workspace-
|
|
3
|
+
import { c as loadWorkspaceAppInfo, f as appKey, l as loadWorkspaceConfig, r as NotInAnApp, t as ConfigNotFound } from "./config-SOkDH-n1.mjs";
|
|
4
|
+
import { E as TEST_STAGE, t as allConstructGlobs } from "./workspace-bOsks1uk.mjs";
|
|
5
5
|
import { i as toEmbeddableSecrets } from "./storage-BzaUxmqe.mjs";
|
|
6
6
|
import { i as FileSecretsStore, n as secretsStoreFor } from "./store-DeGATCS-.mjs";
|
|
7
|
-
import { l as readFakes, u as DEFAULT_CACHE } from "./ready-
|
|
8
|
-
import { n as eventsBackendFor, r as providerOf, t as cacheBackendFor } from "./backends-
|
|
7
|
+
import { l as readFakes, u as DEFAULT_CACHE } from "./ready-tQLNHNya.mjs";
|
|
8
|
+
import { n as eventsBackendFor, r as providerOf, t as cacheBackendFor } from "./backends-CLq1wlQf.mjs";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
11
11
|
import { networkInterfaces } from "node:os";
|
|
@@ -526,11 +526,21 @@ function portOf(address) {
|
|
|
526
526
|
*/
|
|
527
527
|
function hostFor(resource, project) {
|
|
528
528
|
return [
|
|
529
|
-
resource.root && project ? stageOf(resource) : resource
|
|
529
|
+
resource.root && project ? stageOf(resource) : labelOf(resource),
|
|
530
530
|
project,
|
|
531
531
|
LOCAL_TLD
|
|
532
532
|
].filter(Boolean).join(".");
|
|
533
533
|
}
|
|
534
|
+
/**
|
|
535
|
+
* A resource's own label: its `subdomain` where it declared one — the label a
|
|
536
|
+
* deploy uses too — with the stage it carries kept, so `gkm test` and `gkm dev`
|
|
537
|
+
* still answer on different hosts.
|
|
538
|
+
*/
|
|
539
|
+
function labelOf(resource) {
|
|
540
|
+
if (!resource.subdomain) return resource.name;
|
|
541
|
+
const stage = stageOf(resource);
|
|
542
|
+
return stage ? `${resource.subdomain}-${stage}` : resource.subdomain;
|
|
543
|
+
}
|
|
534
544
|
/** The stage a resource's name carries, or nothing for the local stage's. */
|
|
535
545
|
function stageOf(resource) {
|
|
536
546
|
const base = resource.id.toLowerCase();
|
|
@@ -886,6 +896,7 @@ function planFor(manifest, stage, order, options = {}) {
|
|
|
886
896
|
...declaration.scheme ? { scheme: declaration.scheme } : {}
|
|
887
897
|
} : {},
|
|
888
898
|
...declaration.kind === "file-server" && declaration.open?.length ? { open: declaration.open } : {},
|
|
899
|
+
...(declaration.kind === "rest-api" || declaration.kind === "site") && declaration.subdomain ? { subdomain: declaration.subdomain } : {},
|
|
889
900
|
...fake ? { fake: {
|
|
890
901
|
key: fake.key,
|
|
891
902
|
credentials: fake.credentials
|
|
@@ -3014,4 +3025,4 @@ function localAddress(port) {
|
|
|
3014
3025
|
//#endregion
|
|
3015
3026
|
export { loadEnvFiles as C, isPortAvailable as S, prepareEntryCredentials as T, fakeKey as _, reconcileWorkspace as a, createEntryWrapper as b, LOCAL_CA_PATH as c, postgresDatabaseNames as d, quoteIdentifier as f, describeServices as g, rootSite as h, derivedContainers as i, forgetState as l, resourceName as m, backendsOf as n, workspace_exports as o, pgClient as p, constructGlobs as r, COMPOSE_PATH as s, FAKE_ENV as t, applyPostgres as u, primaryPortKey as v, loadSecretsForApp as w, findAvailablePort as x, createCredentialsPreload as y };
|
|
3016
3027
|
|
|
3017
|
-
//# sourceMappingURL=workspace-
|
|
3028
|
+
//# sourceMappingURL=workspace-fa5H6l7D.mjs.map
|