@geekmidas/cli 1.2.1 → 1.2.3
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 +12 -0
- package/dist/index.cjs +110 -182
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +111 -183
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-DrbBWq0s.mjs → openapi-NthphEWK.mjs} +3 -4
- package/dist/{openapi-DrbBWq0s.mjs.map → openapi-NthphEWK.mjs.map} +1 -1
- package/dist/{openapi-BZP8jkI4.cjs → openapi-ZhO7wwya.cjs} +2 -9
- package/dist/{openapi-BZP8jkI4.cjs.map → openapi-ZhO7wwya.cjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.d.cts.map +1 -1
- package/dist/openapi.d.mts.map +1 -1
- package/dist/openapi.mjs +1 -1
- package/package.json +4 -4
- package/src/__tests__/openapi.spec.ts +385 -5
- package/src/dev/index.ts +71 -107
- package/src/generators/OpenApiTsGenerator.ts +0 -1
- package/src/init/generators/ui.ts +20 -20
- package/src/openapi.ts +2 -1
- package/src/workspace/__tests__/client-generator.spec.ts +472 -19
- package/src/workspace/client-generator.ts +139 -199
|
@@ -1595,7 +1595,6 @@ export function createApi(options: CreateApiOptions) {
|
|
|
1595
1595
|
}
|
|
1596
1596
|
`;
|
|
1597
1597
|
return `// Auto-generated by @geekmidas/cli - DO NOT EDIT
|
|
1598
|
-
// Generated: ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
1599
1598
|
|
|
1600
1599
|
// ============================================================
|
|
1601
1600
|
// Security Scheme Type
|
|
@@ -1682,7 +1681,7 @@ const OPENAPI_OUTPUT_PATH = "./.gkm/openapi.ts";
|
|
|
1682
1681
|
function resolveOpenApiConfig(config) {
|
|
1683
1682
|
if (config.openapi === false) return { enabled: false };
|
|
1684
1683
|
if (config.openapi === true || config.openapi === void 0) return {
|
|
1685
|
-
enabled:
|
|
1684
|
+
enabled: true,
|
|
1686
1685
|
title: "API Documentation",
|
|
1687
1686
|
version: "1.0.0",
|
|
1688
1687
|
description: "Auto-generated API documentation from endpoints"
|
|
@@ -1781,5 +1780,5 @@ async function openapiCommand(options = {}) {
|
|
|
1781
1780
|
}
|
|
1782
1781
|
|
|
1783
1782
|
//#endregion
|
|
1784
|
-
export { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH,
|
|
1785
|
-
//# sourceMappingURL=openapi-
|
|
1783
|
+
export { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, openapiCommand, resolveOpenApiConfig };
|
|
1784
|
+
//# sourceMappingURL=openapi-NthphEWK.mjs.map
|