@geekmidas/cli 1.10.36 → 1.10.38
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 +16 -0
- package/dist/{config-U-gojtxn.mjs → config-Bbu1JKvf.mjs} +2 -2
- package/dist/{config-U-gojtxn.mjs.map → config-Bbu1JKvf.mjs.map} +1 -1
- package/dist/{config-QnuOcYXp.cjs → config-DujV8DbR.cjs} +2 -2
- package/dist/{config-QnuOcYXp.cjs.map → config-DujV8DbR.cjs.map} +1 -1
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/{fullstack-secrets-Bchl2MDd.cjs → fullstack-secrets-BYzi6Hwl.cjs} +3 -2
- package/dist/{fullstack-secrets-Bchl2MDd.cjs.map → fullstack-secrets-BYzi6Hwl.cjs.map} +1 -1
- package/dist/{fullstack-secrets-P84v8zWn.mjs → fullstack-secrets-l8s3II_H.mjs} +3 -2
- package/dist/{fullstack-secrets-P84v8zWn.mjs.map → fullstack-secrets-l8s3II_H.mjs.map} +1 -1
- package/dist/{index-D7iT4dnv.d.mts → index-BBvGMG_A.d.mts} +124 -67
- package/dist/index-BBvGMG_A.d.mts.map +1 -0
- package/dist/{index-DRQq26DF.d.cts → index-Dz2a7xQU.d.cts} +124 -67
- package/dist/index-Dz2a7xQU.d.cts.map +1 -0
- package/dist/index.cjs +247 -94
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +247 -94
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-BA0e3I_s.mjs → openapi-DF9GyhyZ.mjs} +11 -4
- package/dist/{openapi-BA0e3I_s.mjs.map → openapi-DF9GyhyZ.mjs.map} +1 -1
- package/dist/{openapi-Bb4UEyZN.cjs → openapi-DHp49UJV.cjs} +10 -3
- package/dist/{openapi-Bb4UEyZN.cjs.map → openapi-DHp49UJV.cjs.map} +1 -1
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.mjs +3 -3
- package/dist/{reconcile-DAAKa0YR.mjs → reconcile-CYGmqXvq.mjs} +2 -2
- package/dist/{reconcile-DAAKa0YR.mjs.map → reconcile-CYGmqXvq.mjs.map} +1 -1
- package/dist/{reconcile-CZtzdrnc.cjs → reconcile-D93YG7G5.cjs} +2 -2
- package/dist/{reconcile-CZtzdrnc.cjs.map → reconcile-D93YG7G5.cjs.map} +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +1 -1
- package/dist/workspace/index.d.mts +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-BobDOIG9.cjs → workspace-CQTT7HJQ.cjs} +34 -25
- package/dist/workspace-CQTT7HJQ.cjs.map +1 -0
- package/dist/{workspace-Cgmvgwh8.mjs → workspace-D-37Ylqo.mjs} +34 -25
- package/dist/workspace-D-37Ylqo.mjs.map +1 -0
- package/docs/dev-server-resilience-design.md +189 -0
- package/package.json +5 -5
- package/src/build/__tests__/workspace-build.spec.ts +7 -7
- package/src/build/index.ts +25 -9
- package/src/credentials/__tests__/helpers.ts +1 -1
- package/src/credentials/__tests__/workspaceCredentials.spec.ts +1 -1
- package/src/deploy/__tests__/domain.spec.ts +12 -12
- package/src/deploy/__tests__/env-resolver.spec.ts +1 -1
- package/src/deploy/__tests__/index.spec.ts +14 -14
- package/src/deploy/__tests__/sniffer.spec.ts +9 -9
- package/src/deploy/domain.ts +19 -11
- package/src/deploy/index.ts +12 -1
- package/src/deploy/sniffer.ts +1 -1
- package/src/deploy/types.ts +1 -1
- package/src/dev/__tests__/index.spec.ts +11 -11
- package/src/dev/index.ts +14 -8
- package/src/docker/__tests__/compose.spec.ts +4 -4
- package/src/docker/compose.ts +5 -3
- package/src/docker/index.ts +34 -6
- package/src/docker/templates.ts +138 -0
- package/src/generators/OpenApiTsGenerator.ts +22 -0
- package/src/generators/__tests__/OpenApiTsGenerator.registry.spec.ts +98 -0
- package/src/init/__tests__/init.spec.ts +1 -1
- package/src/init/generators/monorepo.ts +3 -3
- package/src/init/versions.ts +3 -3
- package/src/openapi.ts +5 -1
- package/src/secrets/__tests__/reconcile.spec.ts +1 -1
- package/src/setup/__tests__/reconcile-secrets.spec.ts +2 -2
- package/src/setup/fullstack-secrets.ts +7 -1
- package/src/setup/index.ts +2 -1
- package/src/test/__tests__/__fixtures__/workspace.ts +1 -1
- package/src/test/__tests__/web.spec.ts +2 -2
- package/src/workspace/__tests__/client-generator.spec.ts +6 -6
- package/src/workspace/__tests__/index.spec.ts +4 -4
- package/src/workspace/__tests__/schema.spec.ts +27 -30
- package/src/workspace/__tests__/type-inference.spec.ts +5 -5
- package/src/workspace/client-generator.ts +10 -7
- package/src/workspace/index.ts +1 -1
- package/src/workspace/publicEnv.ts +2 -4
- package/src/workspace/schema.ts +126 -27
- package/src/workspace/types.ts +40 -69
- package/dist/index-D7iT4dnv.d.mts.map +0 -1
- package/dist/index-DRQq26DF.d.cts.map +0 -1
- package/dist/workspace-BobDOIG9.cjs.map +0 -1
- package/dist/workspace-Cgmvgwh8.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_config = require('./config-
|
|
2
|
+
const require_config = require('./config-DujV8DbR.cjs');
|
|
3
3
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
4
4
|
const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
5
5
|
const node_child_process = require_chunk.__toESM(require("node:child_process"));
|
|
@@ -1364,6 +1364,13 @@ var OpenApiTsGenerator = class {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
|
+
const registrySchemas = await (0, __geekmidas_schema_conversion.getRegisteredZodJsonSchemas)();
|
|
1368
|
+
for (const [rawName, rawSchema] of Object.entries(registrySchemas)) {
|
|
1369
|
+
const defName = this.pascalCase(rawName);
|
|
1370
|
+
if (collectedDefs.has(defName) || generatedNames.has(defName)) continue;
|
|
1371
|
+
const { id: _id, $defs: _defs,...rest } = rawSchema;
|
|
1372
|
+
collectedDefs.set(defName, rest);
|
|
1373
|
+
}
|
|
1367
1374
|
for (const [defName, defSchema] of collectedDefs) if (!generatedNames.has(defName)) {
|
|
1368
1375
|
const interfaceStr = this.jsonSchemaToInterface(defSchema, defName);
|
|
1369
1376
|
interfaces.push(interfaceStr);
|
|
@@ -1783,7 +1790,7 @@ async function openapiCommand(options = {}) {
|
|
|
1783
1790
|
if (result) logger.log(`Found ${result.endpointCount} endpoints`);
|
|
1784
1791
|
} else {
|
|
1785
1792
|
const { workspace } = loadedConfig;
|
|
1786
|
-
const workspaceRoot =
|
|
1793
|
+
const workspaceRoot = workspace.root;
|
|
1787
1794
|
const backendApps = Object.entries(workspace.apps).filter(([_, app]) => app.type === "backend" && (app.openapi === true || typeof app.openapi === "object" && app.openapi.enabled !== false));
|
|
1788
1795
|
if (backendApps.length === 0) {
|
|
1789
1796
|
logger.log("No backend apps with OpenAPI enabled found");
|
|
@@ -1909,4 +1916,4 @@ Object.defineProperty(exports, 'resolveOpenApiConfig', {
|
|
|
1909
1916
|
return resolveOpenApiConfig;
|
|
1910
1917
|
}
|
|
1911
1918
|
});
|
|
1912
|
-
//# sourceMappingURL=openapi-
|
|
1919
|
+
//# sourceMappingURL=openapi-DHp49UJV.cjs.map
|