@geekmidas/cli 10.0.0-alpha.3 → 10.0.0-alpha.4
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/{config-BholeD-0.cjs → config-C21ocYNd.cjs} +2 -2
- package/dist/{config-BholeD-0.cjs.map → config-C21ocYNd.cjs.map} +1 -1
- package/dist/{config-CzWnfcXM.mjs → config-WRdsQYZK.mjs} +2 -2
- package/dist/{config-CzWnfcXM.mjs.map → config-WRdsQYZK.mjs.map} +1 -1
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +2 -2
- package/dist/config.mjs +2 -2
- package/dist/{credentials-BZcp3CGx.mjs → credentials-BBIRJVp4.mjs} +4 -4
- package/dist/{credentials-BZcp3CGx.mjs.map → credentials-BBIRJVp4.mjs.map} +1 -1
- package/dist/{credentials-DQmbRnr1.cjs → credentials-G1JwBoXH.cjs} +4 -4
- package/dist/{credentials-DQmbRnr1.cjs.map → credentials-G1JwBoXH.cjs.map} +1 -1
- package/dist/{index-CHB4tSzX.d.cts → index-DCtipn2h.d.cts} +2 -2
- package/dist/{index-CHB4tSzX.d.cts.map → index-DCtipn2h.d.cts.map} +1 -1
- package/dist/index.cjs +49 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +49 -49
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-c9bpieI5.cjs → openapi-CA0yJUTN.cjs} +7 -2
- package/dist/{openapi-c9bpieI5.cjs.map → openapi-CA0yJUTN.cjs.map} +1 -1
- package/dist/{openapi-CY9xFkTH.mjs → openapi-kkQbsRVj.mjs} +7 -2
- package/dist/{openapi-CY9xFkTH.mjs.map → openapi-kkQbsRVj.mjs.map} +1 -1
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.mjs +3 -3
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/setup-B5_oHHUj.cjs +11 -0
- package/dist/{setup-C48C9hto.cjs → setup-Cm2UnAdh.cjs} +3 -3
- package/dist/{setup-C48C9hto.cjs.map → setup-Cm2UnAdh.cjs.map} +1 -1
- package/dist/{setup-Bc73t0ve.mjs → setup-DXvRLTZN.mjs} +3 -3
- package/dist/{setup-Bc73t0ve.mjs.map → setup-DXvRLTZN.mjs.map} +1 -1
- package/dist/{setup-DCuudnCl.mjs → setup-ZijS4qeC.mjs} +4 -4
- package/dist/{types-abJQuk7m.d.cts → types-BhIl-COG.d.cts} +4 -4
- package/dist/{types-abJQuk7m.d.cts.map → types-BhIl-COG.d.cts.map} +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/workspace-BFMrAKqI.mjs +6634 -0
- package/dist/workspace-BFMrAKqI.mjs.map +1 -0
- package/dist/workspace-BcucjwvA.cjs +6783 -0
- package/dist/workspace-BcucjwvA.cjs.map +1 -0
- package/dist/{workspace-BO_KWohI.cjs → workspace-DdJss8I6.cjs} +3 -3
- package/dist/workspace-k4l3rsFh.mjs +8 -0
- package/package.json +30 -30
- package/dist/setup-fG_ivuxO.cjs +0 -11
- package/dist/workspace-7FqprxuJ.mjs +0 -4323
- package/dist/workspace-7FqprxuJ.mjs.map +0 -1
- package/dist/workspace-DK4WWJIn.mjs +0 -8
- package/dist/workspace-XvqO9jIv.cjs +0 -4472
- package/dist/workspace-XvqO9jIv.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConstructGenerator, isPartitionedRoutes } from "./discover-CAlFgYec.mjs";
|
|
2
|
-
import { loadWorkspaceConfig } from "./config-
|
|
2
|
+
import { loadWorkspaceConfig } from "./config-WRdsQYZK.mjs";
|
|
3
3
|
import { dirname, join, relative } from "node:path";
|
|
4
4
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
@@ -1505,6 +1505,11 @@ var OpenApiTsGenerator = class {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
1507
|
const { $defs,...schemaWithoutDefs } = jsonSchema;
|
|
1508
|
+
const ref = schemaWithoutDefs.$ref;
|
|
1509
|
+
if (ref && Object.keys(schemaWithoutDefs).every((k) => k === "$ref" || k === "$schema")) {
|
|
1510
|
+
const target = ref.split("/").pop();
|
|
1511
|
+
return target === name ? null : `export type ${name} = ${target};`;
|
|
1512
|
+
}
|
|
1508
1513
|
return this.jsonSchemaToInterface(schemaWithoutDefs, name);
|
|
1509
1514
|
} catch {
|
|
1510
1515
|
return null;
|
|
@@ -1959,4 +1964,4 @@ async function runOpenApiInSubprocess(appCwd, appName) {
|
|
|
1959
1964
|
|
|
1960
1965
|
//#endregion
|
|
1961
1966
|
export { EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, normalizeRoutes, openapiCommand, resolveOpenApiConfig };
|
|
1962
|
-
//# sourceMappingURL=openapi-
|
|
1967
|
+
//# sourceMappingURL=openapi-kkQbsRVj.mjs.map
|