@geekmidas/cli 0.0.20 → 0.0.22

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.
@@ -95,7 +95,17 @@ export function createApp(app?: Hono, enableOpenApi: boolean = ${enableOpenApi})
95
95
  envParser
96
96
  );
97
97
 
98
- HonoEndpoint.addRoutes(endpoints, serviceDiscovery, honoApp, enableOpenApi);
98
+ // Configure OpenAPI options based on enableOpenApi flag
99
+ const openApiOptions: any = enableOpenApi ? {
100
+ docsPath: '/docs',
101
+ openApiOptions: {
102
+ title: 'API Documentation',
103
+ version: '1.0.0',
104
+ description: 'Generated API documentation'
105
+ }
106
+ } : { docsPath: false };
107
+
108
+ HonoEndpoint.addRoutes(endpoints, serviceDiscovery, honoApp, openApiOptions);
99
109
 
100
110
  return honoApp;
101
111
  }
@@ -96,7 +96,17 @@ export function createApp(app?: Hono, enableOpenApi: boolean = ${enableOpenApi})
96
96
  envParser
97
97
  );
98
98
 
99
- HonoEndpoint.addRoutes(endpoints, serviceDiscovery, honoApp, enableOpenApi);
99
+ // Configure OpenAPI options based on enableOpenApi flag
100
+ const openApiOptions: any = enableOpenApi ? {
101
+ docsPath: '/docs',
102
+ openApiOptions: {
103
+ title: 'API Documentation',
104
+ version: '1.0.0',
105
+ description: 'Generated API documentation'
106
+ }
107
+ } : { docsPath: false };
108
+
109
+ HonoEndpoint.addRoutes(endpoints, serviceDiscovery, honoApp, openApiOptions);
100
110
 
101
111
  return honoApp;
102
112
  }
package/dist/build.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  require('./config-BNqUMsvc.cjs');
2
2
  require('./loadEndpoints-BBIavB9h.cjs');
3
- const require_build = require('./build-l_9ENAn_.cjs');
3
+ const require_build = require('./build-wv092xvg.cjs');
4
4
 
5
5
  exports.buildCommand = require_build.buildCommand;
package/dist/build.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./config-BciAdY6_.mjs";
2
2
  import "./loadEndpoints-DAZ53Og2.mjs";
3
- import { buildCommand } from "./build-BsapEdhv.mjs";
3
+ import { buildCommand } from "./build-Dpz5SniD.mjs";
4
4
 
5
5
  export { buildCommand };
package/dist/index.cjs CHANGED
@@ -2,14 +2,14 @@
2
2
  const require_chunk = require('./chunk-CUT6urMc.cjs');
3
3
  require('./config-BNqUMsvc.cjs');
4
4
  require('./loadEndpoints-BBIavB9h.cjs');
5
- const require_build = require('./build-l_9ENAn_.cjs');
5
+ const require_build = require('./build-wv092xvg.cjs');
6
6
  const require_openapi_react_query = require('./openapi-react-query-C1JLYUOs.cjs');
7
7
  const require_openapi = require('./openapi-D4QQJUPY.cjs');
8
8
  const commander = require_chunk.__toESM(require("commander"));
9
9
 
10
10
  //#region package.json
11
11
  var name = "@geekmidas/cli";
12
- var version = "0.0.19";
12
+ var version = "0.0.22";
13
13
  var private$1 = false;
14
14
  var type = "module";
15
15
  var bin = { "gkm": "./dist/index.cjs" };
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env -S npx tsx
2
2
  import "./config-BciAdY6_.mjs";
3
3
  import "./loadEndpoints-DAZ53Og2.mjs";
4
- import { buildCommand } from "./build-BsapEdhv.mjs";
4
+ import { buildCommand } from "./build-Dpz5SniD.mjs";
5
5
  import { generateReactQueryCommand } from "./openapi-react-query-DpT3XHFC.mjs";
6
6
  import { openapiCommand } from "./openapi-CksVdkh2.mjs";
7
7
  import { Command } from "commander";
8
8
 
9
9
  //#region package.json
10
10
  var name = "@geekmidas/cli";
11
- var version = "0.0.19";
11
+ var version = "0.0.22";
12
12
  var private$1 = false;
13
13
  var type = "module";
14
14
  var bin = { "gkm": "./dist/index.cjs" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/cli",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
package/src/build.ts CHANGED
@@ -89,7 +89,9 @@ export async function buildCommand(options: BuildOptions): Promise<void> {
89
89
  handler: relative(process.cwd(), serverFile),
90
90
  });
91
91
 
92
- logger.log(`Generated server app with ${allEndpoints.length} endpoints${options.enableOpenApi ? ' (OpenAPI enabled)' : ''}`);
92
+ logger.log(
93
+ `Generated server app with ${allEndpoints.length} endpoints${options.enableOpenApi ? ' (OpenAPI enabled)' : ''}`,
94
+ );
93
95
  } else {
94
96
  // Generate individual handler files for AWS providers
95
97
  for (const { file, exportName, routeInfo } of allEndpoints) {
@@ -192,7 +194,17 @@ export function createApp(app?: Hono, enableOpenApi: boolean = ${enableOpenApi})
192
194
  envParser
193
195
  );
194
196
 
195
- HonoEndpoint.addRoutes(endpoints, serviceDiscovery, honoApp, enableOpenApi);
197
+ // Configure OpenAPI options based on enableOpenApi flag
198
+ const openApiOptions: any = enableOpenApi ? {
199
+ docsPath: '/docs',
200
+ openApiOptions: {
201
+ title: 'API Documentation',
202
+ version: '1.0.0',
203
+ description: 'Generated API documentation'
204
+ }
205
+ } : { docsPath: false };
206
+
207
+ HonoEndpoint.addRoutes(endpoints, serviceDiscovery, honoApp, openApiOptions);
196
208
 
197
209
  return honoApp;
198
210
  }
package/src/index.ts CHANGED
@@ -36,7 +36,7 @@ program
36
36
  const providerList = [
37
37
  ...new Set(options.providers.split(',').map((p) => p.trim())),
38
38
  ] as Provider[];
39
- await buildCommand({
39
+ await buildCommand({
40
40
  providers: providerList,
41
41
  enableOpenApi: options.enableOpenapi || false,
42
42
  });