@geekmidas/cli 9.2.0 → 9.2.1
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 +25 -0
- package/dist/{config-Bbu1JKvf.mjs → config-D7AVl-qm.mjs} +2 -2
- package/dist/{config-Bbu1JKvf.mjs.map → config-D7AVl-qm.mjs.map} +1 -1
- package/dist/{config-DujV8DbR.cjs → config-DcxHEHPB.cjs} +2 -2
- package/dist/{config-DujV8DbR.cjs.map → config-DcxHEHPB.cjs.map} +1 -1
- package/dist/config.cjs +2 -2
- package/dist/config.mjs +2 -2
- package/dist/index.cjs +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +26 -26
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-C5rXJTtj.mjs → openapi-BlIiUahn.mjs} +7 -2
- package/dist/{openapi-C5rXJTtj.mjs.map → openapi-BlIiUahn.mjs.map} +1 -1
- package/dist/{openapi-B_IGZDVu.cjs → openapi-C-YgZHyd.cjs} +7 -2
- package/dist/{openapi-B_IGZDVu.cjs.map → openapi-C-YgZHyd.cjs.map} +1 -1
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.mjs +3 -3
- package/dist/{setup-DDXUXzzl.mjs → setup-A-BX8JUm.mjs} +3 -3
- package/dist/{setup-DDXUXzzl.mjs.map → setup-A-BX8JUm.mjs.map} +1 -1
- package/dist/setup-BDB9lvEI.cjs +8 -0
- package/dist/{setup-Dh-B7YTX.mjs → setup-BzftAUve.mjs} +3 -3
- package/dist/{setup-WZ-xqAQO.cjs → setup-C2UhXWhN.cjs} +3 -3
- package/dist/{setup-WZ-xqAQO.cjs.map → setup-C2UhXWhN.cjs.map} +1 -1
- package/dist/types-BWQDiooe.d.cts.map +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/workspace-CqXfzYyp.cjs +6704 -0
- package/dist/workspace-CqXfzYyp.cjs.map +1 -0
- package/dist/workspace-DrBWGtI7.mjs +6579 -0
- package/dist/workspace-DrBWGtI7.mjs.map +1 -0
- package/package.json +10 -10
- package/src/generators/OpenApiTsGenerator.ts +21 -0
- package/src/generators/__tests__/Generator.bustCache.spec.ts +16 -8
- package/src/init/versions.ts +19 -19
- package/dist/setup-DLwhfyt-.cjs +0 -8
- package/dist/workspace-CQTT7HJQ.cjs +0 -4361
- package/dist/workspace-CQTT7HJQ.cjs.map +0 -1
- package/dist/workspace-D-37Ylqo.mjs +0 -4236
- package/dist/workspace-D-37Ylqo.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadWorkspaceConfig } from "./config-
|
|
1
|
+
import { loadWorkspaceConfig } from "./config-D7AVl-qm.mjs";
|
|
2
2
|
import { dirname, join, relative } from "node:path";
|
|
3
3
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
@@ -1430,6 +1430,11 @@ var OpenApiTsGenerator = class {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
const { $defs,...schemaWithoutDefs } = jsonSchema;
|
|
1433
|
+
const ref = schemaWithoutDefs.$ref;
|
|
1434
|
+
if (ref && Object.keys(schemaWithoutDefs).every((k) => k === "$ref" || k === "$schema")) {
|
|
1435
|
+
const target = ref.split("/").pop();
|
|
1436
|
+
return target === name ? null : `export type ${name} = ${target};`;
|
|
1437
|
+
}
|
|
1433
1438
|
return this.jsonSchemaToInterface(schemaWithoutDefs, name);
|
|
1434
1439
|
} catch {
|
|
1435
1440
|
return null;
|
|
@@ -1884,4 +1889,4 @@ async function runOpenApiInSubprocess(appCwd, appName) {
|
|
|
1884
1889
|
|
|
1885
1890
|
//#endregion
|
|
1886
1891
|
export { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, isPartitionedRoutes, normalizeRoutes, openapiCommand, resolveOpenApiConfig };
|
|
1887
|
-
//# sourceMappingURL=openapi-
|
|
1892
|
+
//# sourceMappingURL=openapi-BlIiUahn.mjs.map
|