@geekmidas/cli 1.2.0 → 1.2.2
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 +29 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +29 -26
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-DrbBWq0s.mjs → openapi-BZ4Qik9w.mjs} +2 -3
- package/dist/{openapi-DrbBWq0s.mjs.map → openapi-BZ4Qik9w.mjs.map} +1 -1
- package/dist/{openapi-BZP8jkI4.cjs → openapi-CzfnHlhG.cjs} +2 -3
- package/dist/{openapi-BZP8jkI4.cjs.map → openapi-CzfnHlhG.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/deploy/sniffer.ts +1 -1
- package/src/dev/index.ts +4 -3
- package/src/generators/OpenApiTsGenerator.ts +0 -1
- package/src/init/generators/ui.ts +20 -20
- package/src/init/generators/web.ts +2 -0
- package/src/openapi.ts +2 -1
- package/src/workspace/__tests__/client-generator.spec.ts +424 -0
|
@@ -1596,7 +1596,6 @@ export function createApi(options: CreateApiOptions) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
`;
|
|
1598
1598
|
return `// Auto-generated by @geekmidas/cli - DO NOT EDIT
|
|
1599
|
-
// Generated: ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
1600
1599
|
|
|
1601
1600
|
// ============================================================
|
|
1602
1601
|
// Security Scheme Type
|
|
@@ -1683,7 +1682,7 @@ const OPENAPI_OUTPUT_PATH = "./.gkm/openapi.ts";
|
|
|
1683
1682
|
function resolveOpenApiConfig(config) {
|
|
1684
1683
|
if (config.openapi === false) return { enabled: false };
|
|
1685
1684
|
if (config.openapi === true || config.openapi === void 0) return {
|
|
1686
|
-
enabled:
|
|
1685
|
+
enabled: true,
|
|
1687
1686
|
title: "API Documentation",
|
|
1688
1687
|
version: "1.0.0",
|
|
1689
1688
|
description: "Auto-generated API documentation from endpoints"
|
|
@@ -1824,4 +1823,4 @@ Object.defineProperty(exports, 'resolveOpenApiConfig', {
|
|
|
1824
1823
|
return resolveOpenApiConfig;
|
|
1825
1824
|
}
|
|
1826
1825
|
});
|
|
1827
|
-
//# sourceMappingURL=openapi-
|
|
1826
|
+
//# sourceMappingURL=openapi-CzfnHlhG.cjs.map
|