@geekmidas/cli 1.9.1 → 1.10.0

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 (59) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +42 -6
  3. package/dist/{config-6JHOwLCx.cjs → config-D3ORuiUs.cjs} +2 -2
  4. package/dist/{config-6JHOwLCx.cjs.map → config-D3ORuiUs.cjs.map} +1 -1
  5. package/dist/{config-DxASSNjr.mjs → config-jsRYHOHU.mjs} +2 -2
  6. package/dist/{config-DxASSNjr.mjs.map → config-jsRYHOHU.mjs.map} +1 -1
  7. package/dist/config.cjs +2 -2
  8. package/dist/config.d.cts +2 -2
  9. package/dist/config.d.mts +2 -2
  10. package/dist/config.mjs +2 -2
  11. package/dist/{index-Bt2kX0-R.d.mts → index-3n-giNaw.d.mts} +18 -6
  12. package/dist/index-3n-giNaw.d.mts.map +1 -0
  13. package/dist/{index-Cyk2rTyj.d.cts → index-CiEOtKEX.d.cts} +18 -6
  14. package/dist/index-CiEOtKEX.d.cts.map +1 -0
  15. package/dist/index.cjs +182 -158
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.mjs +179 -155
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/{openapi-CnvwSRDU.cjs → openapi-BYxAWwok.cjs} +178 -32
  20. package/dist/openapi-BYxAWwok.cjs.map +1 -0
  21. package/dist/{openapi-BYlyAbH3.mjs → openapi-DenF-okj.mjs} +148 -32
  22. package/dist/openapi-DenF-okj.mjs.map +1 -0
  23. package/dist/openapi.cjs +3 -3
  24. package/dist/openapi.d.cts +1 -1
  25. package/dist/openapi.d.cts.map +1 -1
  26. package/dist/openapi.d.mts +1 -1
  27. package/dist/openapi.d.mts.map +1 -1
  28. package/dist/openapi.mjs +3 -3
  29. package/dist/{types-l53qUmGt.d.cts → types-C7QJJl9f.d.cts} +6 -2
  30. package/dist/types-C7QJJl9f.d.cts.map +1 -0
  31. package/dist/{types-wXMIMOyK.d.mts → types-Iqsq_FIG.d.mts} +6 -2
  32. package/dist/types-Iqsq_FIG.d.mts.map +1 -0
  33. package/dist/workspace/index.cjs +1 -1
  34. package/dist/workspace/index.d.cts +2 -2
  35. package/dist/workspace/index.d.mts +2 -2
  36. package/dist/workspace/index.mjs +1 -1
  37. package/dist/{workspace-D2ocAlpl.cjs → workspace-4SP3Gx4Y.cjs} +11 -3
  38. package/dist/{workspace-D2ocAlpl.cjs.map → workspace-4SP3Gx4Y.cjs.map} +1 -1
  39. package/dist/{workspace-9IQIjwkQ.mjs → workspace-D4z4A4cq.mjs} +11 -3
  40. package/dist/{workspace-9IQIjwkQ.mjs.map → workspace-D4z4A4cq.mjs.map} +1 -1
  41. package/package.json +4 -4
  42. package/src/build/__tests__/manifests.spec.ts +171 -0
  43. package/src/build/__tests__/partitions.spec.ts +110 -0
  44. package/src/build/index.ts +58 -15
  45. package/src/build/manifests.ts +153 -32
  46. package/src/build/partitions.ts +58 -0
  47. package/src/deploy/sniffer.ts +6 -1
  48. package/src/generators/Generator.ts +27 -7
  49. package/src/generators/OpenApiTsGenerator.ts +4 -4
  50. package/src/openapi.ts +2 -1
  51. package/src/types.ts +17 -1
  52. package/src/workspace/client-generator.ts +6 -3
  53. package/src/workspace/schema.ts +13 -3
  54. package/dist/index-Bt2kX0-R.d.mts.map +0 -1
  55. package/dist/index-Cyk2rTyj.d.cts.map +0 -1
  56. package/dist/openapi-BYlyAbH3.mjs.map +0 -1
  57. package/dist/openapi-CnvwSRDU.cjs.map +0 -1
  58. package/dist/types-l53qUmGt.d.cts.map +0 -1
  59. package/dist/types-wXMIMOyK.d.mts.map +0 -1
@@ -3356,9 +3356,17 @@ const meta = meta$1;
3356
3356
  //#endregion
3357
3357
  //#region src/workspace/schema.ts
3358
3358
  /**
3359
- * Routes can be a string glob or array of globs.
3359
+ * Routes can be a string glob, array of globs, or a partitioned config
3360
+ * with glob paths and a partition function.
3360
3361
  */
3361
- const RoutesSchema = union([string(), array(string())]);
3362
+ const RoutesSchema = union([
3363
+ string(),
3364
+ array(string()),
3365
+ object({
3366
+ paths: union([string(), array(string())]),
3367
+ partition: custom((val) => typeof val === "function")
3368
+ })
3369
+ ]);
3362
3370
  /**
3363
3371
  * Telescope configuration schema.
3364
3372
  */
@@ -4168,4 +4176,4 @@ function getEndpointForStage(dokployConfig, stage) {
4168
4176
 
4169
4177
  //#endregion
4170
4178
  export { PHASE_2_DEPLOY_TARGETS, SUPPORTED_DEPLOY_TARGETS, WorkspaceConfigSchema, defineWorkspace, formatValidationErrors, getAppBuildOrder, getAppGkmConfig, getDependencyEnvVars, getDeployTargetError, getEndpointForStage, isDeployTargetSupported, isPhase2DeployTarget, isWorkspaceConfig, normalizeWorkspace, processConfig, safeValidateWorkspaceConfig, validateWorkspaceConfig, wrapSingleAppAsWorkspace };
4171
- //# sourceMappingURL=workspace-9IQIjwkQ.mjs.map
4179
+ //# sourceMappingURL=workspace-D4z4A4cq.mjs.map