@geekmidas/cli 10.0.0-alpha.32 → 10.0.0-alpha.34

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.
Files changed (57) hide show
  1. package/dist/{config-URVD4bTj.cjs → config-DMpzmsQL.cjs} +2 -2
  2. package/dist/{config-URVD4bTj.cjs.map → config-DMpzmsQL.cjs.map} +1 -1
  3. package/dist/{config-BH3Ki69F.mjs → config-Du8AQJRK.mjs} +2 -2
  4. package/dist/{config-BH3Ki69F.mjs.map → config-Du8AQJRK.mjs.map} +1 -1
  5. package/dist/config.cjs +2 -2
  6. package/dist/config.d.cts +2 -2
  7. package/dist/config.d.mts +2 -2
  8. package/dist/config.mjs +2 -2
  9. package/dist/discover-CMxesskG.mjs.map +1 -1
  10. package/dist/discover-CroTIm0K.cjs.map +1 -1
  11. package/dist/{github-BrDmlm1x.mjs → github-DN-92LWP.mjs} +3 -3
  12. package/dist/{github-BrDmlm1x.mjs.map → github-DN-92LWP.mjs.map} +1 -1
  13. package/dist/{github-B2fis34P.cjs → github-JhvrmjQp.cjs} +3 -3
  14. package/dist/{github-B2fis34P.cjs.map → github-JhvrmjQp.cjs.map} +1 -1
  15. package/dist/{index-p89EzILa.d.mts → index-CAp22ul5.d.cts} +2 -2
  16. package/dist/{index-p89EzILa.d.mts.map → index-CAp22ul5.d.cts.map} +1 -1
  17. package/dist/{index-rU9u761a.d.cts → index-DxXMtQNT.d.mts} +2 -2
  18. package/dist/{index-rU9u761a.d.cts.map → index-DxXMtQNT.d.mts.map} +1 -1
  19. package/dist/index.cjs +125 -81
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.mjs +126 -82
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/{migrate-CnPtWnkR.mjs → migrate-BbhXxQer.mjs} +4 -4
  24. package/dist/{migrate-CnPtWnkR.mjs.map → migrate-BbhXxQer.mjs.map} +1 -1
  25. package/dist/{migrate-BiasgAIN.cjs → migrate-u1oRHz6K.cjs} +4 -4
  26. package/dist/{migrate-BiasgAIN.cjs.map → migrate-u1oRHz6K.cjs.map} +1 -1
  27. package/dist/openapi.cjs +1 -1
  28. package/dist/openapi.d.cts +1 -1
  29. package/dist/openapi.d.mts +1 -1
  30. package/dist/openapi.mjs +1 -1
  31. package/dist/{ready-DXtNfk7v.cjs → ready-CXhoutix.cjs} +108 -25
  32. package/dist/ready-CXhoutix.cjs.map +1 -0
  33. package/dist/{ready-CvP3JVEw.mjs → ready-D1BCiaYU.mjs} +106 -29
  34. package/dist/ready-D1BCiaYU.mjs.map +1 -0
  35. package/dist/reconcile/public.d.cts +1 -1
  36. package/dist/reconcile/public.d.mts +1 -1
  37. package/dist/{types-CzK6hsXP.d.mts → types-BTiu5kwo.d.mts} +26 -1
  38. package/dist/{types-CzK6hsXP.d.mts.map → types-BTiu5kwo.d.mts.map} +1 -1
  39. package/dist/{types-DOOAevjG.d.cts → types-Bj_FpeTc.d.cts} +26 -1
  40. package/dist/{types-DOOAevjG.d.cts.map → types-Bj_FpeTc.d.cts.map} +1 -1
  41. package/dist/vitest.cjs +1 -1
  42. package/dist/vitest.mjs +1 -1
  43. package/dist/workspace/index.cjs +1 -1
  44. package/dist/workspace/index.d.cts +2 -2
  45. package/dist/workspace/index.d.mts +2 -2
  46. package/dist/workspace/index.mjs +1 -1
  47. package/dist/{workspace-Bav3TVrP.cjs → workspace-CAJk6UmC.cjs} +11 -4
  48. package/dist/{workspace-Bav3TVrP.cjs.map → workspace-CAJk6UmC.cjs.map} +1 -1
  49. package/dist/{workspace-T4IVGSoB.mjs → workspace-CsL76tpc.mjs} +11 -4
  50. package/dist/{workspace-T4IVGSoB.mjs.map → workspace-CsL76tpc.mjs.map} +1 -1
  51. package/dist/{workspace-C97QUCIf.mjs → workspace-DB2YHgOl.mjs} +4 -3
  52. package/dist/{workspace-C97QUCIf.mjs.map → workspace-DB2YHgOl.mjs.map} +1 -1
  53. package/dist/{workspace-BhiMkRuA.cjs → workspace-LKFnEBX8.cjs} +4 -3
  54. package/dist/{workspace-BhiMkRuA.cjs.map → workspace-LKFnEBX8.cjs.map} +1 -1
  55. package/package.json +14 -14
  56. package/dist/ready-CvP3JVEw.mjs.map +0 -1
  57. package/dist/ready-DXtNfk7v.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_workspace = require("../workspace-Bav3TVrP.cjs");
2
+ const require_workspace = require("../workspace-CAJk6UmC.cjs");
3
3
  exports.PHASE_2_DEPLOY_TARGETS = require_workspace.PHASE_2_DEPLOY_TARGETS;
4
4
  exports.PUBLIC_ENV_PREFIXES = require_workspace.PUBLIC_ENV_PREFIXES;
5
5
  exports.SUPPORTED_DEPLOY_TARGETS = require_workspace.SUPPORTED_DEPLOY_TARGETS;
@@ -1,3 +1,3 @@
1
- import { A as SUPPORTED_DEPLOY_TARGETS, C as WorkspaceInput, D as FrontendFramework, F as isPhase2DeployTarget, I as safeValidateWorkspaceConfig, L as validateWorkspaceConfig, M as formatValidationErrors, N as getDeployTargetError, O as MobileFramework, P as isDeployTargetSupported, S as WorkspaceConfig, T as BackendFramework, _ as ModelsConfig, b as SecretsConfig, c as AppInput, d as DeployConfig, f as DeployTarget, g as LoadedConfig, h as InferredWorkspaceConfig, j as WorkspaceConfigSchema, k as PHASE_2_DEPLOY_TARGETS, l as AppsRecord, m as InferAppNames, o as AppConfig, p as DokployWorkspaceConfig, s as AppConfigInput, u as ConstrainedApps, v as NormalizedAppConfig, w as isWorkspaceConfig, x as SharedConfig, y as NormalizedWorkspace } from "../types-DOOAevjG.cjs";
2
- import { a as getAppBuildOrder, c as normalizeWorkspace, d as wrapSingleAppAsWorkspace, f as PUBLIC_ENV_PREFIXES, i as defineWorkspace, l as processConfig, m as stripPublicPrefix, n as appConstructGlobs, o as getAppGkmConfig, p as getPublicEnvPrefix, r as constructPatterns, s as getEndpointForStage, t as allConstructGlobs, u as workspaceConstructGlobs } from "../index-rU9u761a.cjs";
1
+ import { A as SUPPORTED_DEPLOY_TARGETS, C as WorkspaceInput, D as FrontendFramework, F as isPhase2DeployTarget, I as safeValidateWorkspaceConfig, L as validateWorkspaceConfig, M as formatValidationErrors, N as getDeployTargetError, O as MobileFramework, P as isDeployTargetSupported, S as WorkspaceConfig, T as BackendFramework, _ as ModelsConfig, b as SecretsConfig, c as AppInput, d as DeployConfig, f as DeployTarget, g as LoadedConfig, h as InferredWorkspaceConfig, j as WorkspaceConfigSchema, k as PHASE_2_DEPLOY_TARGETS, l as AppsRecord, m as InferAppNames, o as AppConfig, p as DokployWorkspaceConfig, s as AppConfigInput, u as ConstrainedApps, v as NormalizedAppConfig, w as isWorkspaceConfig, x as SharedConfig, y as NormalizedWorkspace } from "../types-Bj_FpeTc.cjs";
2
+ import { a as getAppBuildOrder, c as normalizeWorkspace, d as wrapSingleAppAsWorkspace, f as PUBLIC_ENV_PREFIXES, i as defineWorkspace, l as processConfig, m as stripPublicPrefix, n as appConstructGlobs, o as getAppGkmConfig, p as getPublicEnvPrefix, r as constructPatterns, s as getEndpointForStage, t as allConstructGlobs, u as workspaceConstructGlobs } from "../index-CAp22ul5.cjs";
3
3
  export { type AppConfig, type AppConfigInput, type AppInput, type AppsRecord, type BackendFramework, type ConstrainedApps, type DeployConfig, type DeployTarget, type DokployWorkspaceConfig, type FrontendFramework, type InferAppNames, type InferredWorkspaceConfig, type LoadedConfig, type MobileFramework, type ModelsConfig, type NormalizedAppConfig, type NormalizedWorkspace, PHASE_2_DEPLOY_TARGETS, PUBLIC_ENV_PREFIXES, SUPPORTED_DEPLOY_TARGETS, type SecretsConfig, type SharedConfig, type WorkspaceConfig, WorkspaceConfigSchema, type WorkspaceInput, allConstructGlobs, appConstructGlobs, constructPatterns, defineWorkspace, formatValidationErrors, getAppBuildOrder, getAppGkmConfig, getDeployTargetError, getEndpointForStage, getPublicEnvPrefix, isDeployTargetSupported, isPhase2DeployTarget, isWorkspaceConfig, normalizeWorkspace, processConfig, safeValidateWorkspaceConfig, stripPublicPrefix, validateWorkspaceConfig, workspaceConstructGlobs, wrapSingleAppAsWorkspace };
@@ -1,3 +1,3 @@
1
- import { A as SUPPORTED_DEPLOY_TARGETS, C as WorkspaceInput, D as FrontendFramework, F as isPhase2DeployTarget, I as safeValidateWorkspaceConfig, L as validateWorkspaceConfig, M as formatValidationErrors, N as getDeployTargetError, O as MobileFramework, P as isDeployTargetSupported, S as WorkspaceConfig, T as BackendFramework, _ as ModelsConfig, b as SecretsConfig, c as AppInput, d as DeployConfig, f as DeployTarget, g as LoadedConfig, h as InferredWorkspaceConfig, j as WorkspaceConfigSchema, k as PHASE_2_DEPLOY_TARGETS, l as AppsRecord, m as InferAppNames, o as AppConfig, p as DokployWorkspaceConfig, s as AppConfigInput, u as ConstrainedApps, v as NormalizedAppConfig, w as isWorkspaceConfig, x as SharedConfig, y as NormalizedWorkspace } from "../types-CzK6hsXP.mjs";
2
- import { a as getAppBuildOrder, c as normalizeWorkspace, d as wrapSingleAppAsWorkspace, f as PUBLIC_ENV_PREFIXES, i as defineWorkspace, l as processConfig, m as stripPublicPrefix, n as appConstructGlobs, o as getAppGkmConfig, p as getPublicEnvPrefix, r as constructPatterns, s as getEndpointForStage, t as allConstructGlobs, u as workspaceConstructGlobs } from "../index-p89EzILa.mjs";
1
+ import { A as SUPPORTED_DEPLOY_TARGETS, C as WorkspaceInput, D as FrontendFramework, F as isPhase2DeployTarget, I as safeValidateWorkspaceConfig, L as validateWorkspaceConfig, M as formatValidationErrors, N as getDeployTargetError, O as MobileFramework, P as isDeployTargetSupported, S as WorkspaceConfig, T as BackendFramework, _ as ModelsConfig, b as SecretsConfig, c as AppInput, d as DeployConfig, f as DeployTarget, g as LoadedConfig, h as InferredWorkspaceConfig, j as WorkspaceConfigSchema, k as PHASE_2_DEPLOY_TARGETS, l as AppsRecord, m as InferAppNames, o as AppConfig, p as DokployWorkspaceConfig, s as AppConfigInput, u as ConstrainedApps, v as NormalizedAppConfig, w as isWorkspaceConfig, x as SharedConfig, y as NormalizedWorkspace } from "../types-BTiu5kwo.mjs";
2
+ import { a as getAppBuildOrder, c as normalizeWorkspace, d as wrapSingleAppAsWorkspace, f as PUBLIC_ENV_PREFIXES, i as defineWorkspace, l as processConfig, m as stripPublicPrefix, n as appConstructGlobs, o as getAppGkmConfig, p as getPublicEnvPrefix, r as constructPatterns, s as getEndpointForStage, t as allConstructGlobs, u as workspaceConstructGlobs } from "../index-DxXMtQNT.mjs";
3
3
  export { type AppConfig, type AppConfigInput, type AppInput, type AppsRecord, type BackendFramework, type ConstrainedApps, type DeployConfig, type DeployTarget, type DokployWorkspaceConfig, type FrontendFramework, type InferAppNames, type InferredWorkspaceConfig, type LoadedConfig, type MobileFramework, type ModelsConfig, type NormalizedAppConfig, type NormalizedWorkspace, PHASE_2_DEPLOY_TARGETS, PUBLIC_ENV_PREFIXES, SUPPORTED_DEPLOY_TARGETS, type SecretsConfig, type SharedConfig, type WorkspaceConfig, WorkspaceConfigSchema, type WorkspaceInput, allConstructGlobs, appConstructGlobs, constructPatterns, defineWorkspace, formatValidationErrors, getAppBuildOrder, getAppGkmConfig, getDeployTargetError, getEndpointForStage, getPublicEnvPrefix, isDeployTargetSupported, isPhase2DeployTarget, isWorkspaceConfig, normalizeWorkspace, processConfig, safeValidateWorkspaceConfig, stripPublicPrefix, validateWorkspaceConfig, workspaceConstructGlobs, wrapSingleAppAsWorkspace };
@@ -1,2 +1,2 @@
1
- import { C as safeValidateWorkspaceConfig, S as isPhase2DeployTarget, _ as SUPPORTED_DEPLOY_TARGETS, a as getAppBuildOrder, b as getDeployTargetError, c as normalizeWorkspace, d as wrapSingleAppAsWorkspace, f as PUBLIC_ENV_PREFIXES, g as PHASE_2_DEPLOY_TARGETS, h as isWorkspaceConfig, i as defineWorkspace, l as processConfig, m as stripPublicPrefix, n as appConstructGlobs, o as getAppGkmConfig, p as getPublicEnvPrefix, r as constructPatterns, s as getEndpointForStage, t as allConstructGlobs, u as workspaceConstructGlobs, v as WorkspaceConfigSchema, w as validateWorkspaceConfig, x as isDeployTargetSupported, y as formatValidationErrors } from "../workspace-T4IVGSoB.mjs";
1
+ import { C as safeValidateWorkspaceConfig, S as isPhase2DeployTarget, _ as SUPPORTED_DEPLOY_TARGETS, a as getAppBuildOrder, b as getDeployTargetError, c as normalizeWorkspace, d as wrapSingleAppAsWorkspace, f as PUBLIC_ENV_PREFIXES, g as PHASE_2_DEPLOY_TARGETS, h as isWorkspaceConfig, i as defineWorkspace, l as processConfig, m as stripPublicPrefix, n as appConstructGlobs, o as getAppGkmConfig, p as getPublicEnvPrefix, r as constructPatterns, s as getEndpointForStage, t as allConstructGlobs, u as workspaceConstructGlobs, v as WorkspaceConfigSchema, w as validateWorkspaceConfig, x as isDeployTargetSupported, y as formatValidationErrors } from "../workspace-CsL76tpc.mjs";
2
2
  export { PHASE_2_DEPLOY_TARGETS, PUBLIC_ENV_PREFIXES, SUPPORTED_DEPLOY_TARGETS, WorkspaceConfigSchema, allConstructGlobs, appConstructGlobs, constructPatterns, defineWorkspace, formatValidationErrors, getAppBuildOrder, getAppGkmConfig, getDeployTargetError, getEndpointForStage, getPublicEnvPrefix, isDeployTargetSupported, isPhase2DeployTarget, isWorkspaceConfig, normalizeWorkspace, processConfig, safeValidateWorkspaceConfig, stripPublicPrefix, validateWorkspaceConfig, workspaceConstructGlobs, wrapSingleAppAsWorkspace };
@@ -6070,6 +6070,10 @@ const AppConfigSchema = object({
6070
6070
  message: `Mobile apps must have a valid mobile framework (${MOBILE_FRAMEWORKS.join(", ")})`,
6071
6071
  path: ["framework"]
6072
6072
  });
6073
+ /** What `gkm test` hands a feature test. */
6074
+ const TestConfigSchema = object({
6075
+ /** The folder of per-database factories; `test/factories` by default. */
6076
+ factories: string().optional() }).strict();
6073
6077
  /**
6074
6078
  * Workspace configuration schema.
6075
6079
  */
@@ -6098,7 +6102,8 @@ const WorkspaceConfigSchema = object({
6098
6102
  deploy: DeployConfigSchema.optional(),
6099
6103
  stages: StagesConfigSchema,
6100
6104
  secrets: SecretsConfigSchema.optional(),
6101
- state: StateConfigSchema.optional()
6105
+ state: StateConfigSchema.optional(),
6106
+ test: TestConfigSchema.optional()
6102
6107
  }).strict().refine((data) => {
6103
6108
  const appNames = Object.keys(data.apps ?? {});
6104
6109
  for (const [appName, app] of Object.entries(data.apps ?? {})) for (const dep of app.dependencies ?? []) {
@@ -6344,7 +6349,8 @@ function normalizeWorkspace(config, cwd) {
6344
6349
  shared: config.shared ?? { packages: ["packages/*"] },
6345
6350
  stages: validateStages(config.stages),
6346
6351
  secrets: config.secrets ?? {},
6347
- state: config.state
6352
+ state: config.state,
6353
+ test: config.test ?? {}
6348
6354
  };
6349
6355
  }
6350
6356
  /**
@@ -6391,7 +6397,8 @@ function wrapSingleAppAsWorkspace(config, cwd) {
6391
6397
  },
6392
6398
  shared: { packages: [] },
6393
6399
  stages: validateStages(config.stages),
6394
- secrets: config.secrets ?? {}
6400
+ secrets: config.secrets ?? {},
6401
+ test: config.test ?? {}
6395
6402
  };
6396
6403
  }
6397
6404
  /**
@@ -6707,4 +6714,4 @@ Object.defineProperty(exports, "wrapSingleAppAsWorkspace", {
6707
6714
  }
6708
6715
  });
6709
6716
 
6710
- //# sourceMappingURL=workspace-Bav3TVrP.cjs.map
6717
+ //# sourceMappingURL=workspace-CAJk6UmC.cjs.map