@geekmidas/cli 0.0.20 → 0.0.21
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/{build-BsapEdhv.mjs → build-BbzztcKf.mjs} +11 -1
- package/dist/{build-l_9ENAn_.cjs → build-C9pAFzAM.cjs} +11 -1
- package/dist/build.cjs +1 -1
- package/dist/build.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/build.ts +11 -1
- package/src/index.ts +2 -2
|
@@ -95,7 +95,17 @@ export function createApp(app?: Hono, enableOpenApi: boolean = ${enableOpenApi})
|
|
|
95
95
|
envParser
|
|
96
96
|
);
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
// Configure OpenAPI options based on enableOpenApi flag
|
|
99
|
+
const openApiOptions = 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
|
-
|
|
99
|
+
// Configure OpenAPI options based on enableOpenApi flag
|
|
100
|
+
const openApiOptions = 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
package/dist/build.mjs
CHANGED
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-
|
|
5
|
+
const require_build = require('./build-C9pAFzAM.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.
|
|
12
|
+
var version = "0.0.21";
|
|
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-
|
|
4
|
+
import { buildCommand } from "./build-BbzztcKf.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.
|
|
11
|
+
var version = "0.0.21";
|
|
12
12
|
var private$1 = false;
|
|
13
13
|
var type = "module";
|
|
14
14
|
var bin = { "gkm": "./dist/index.cjs" };
|
package/package.json
CHANGED
package/src/build.ts
CHANGED
|
@@ -192,7 +192,17 @@ export function createApp(app?: Hono, enableOpenApi: boolean = ${enableOpenApi})
|
|
|
192
192
|
envParser
|
|
193
193
|
);
|
|
194
194
|
|
|
195
|
-
|
|
195
|
+
// Configure OpenAPI options based on enableOpenApi flag
|
|
196
|
+
const openApiOptions = enableOpenApi ? {
|
|
197
|
+
docsPath: '/docs',
|
|
198
|
+
openApiOptions: {
|
|
199
|
+
title: 'API Documentation',
|
|
200
|
+
version: '1.0.0',
|
|
201
|
+
description: 'Generated API documentation'
|
|
202
|
+
}
|
|
203
|
+
} : { docsPath: false };
|
|
204
|
+
|
|
205
|
+
HonoEndpoint.addRoutes(endpoints, serviceDiscovery, honoApp, openApiOptions);
|
|
196
206
|
|
|
197
207
|
return honoApp;
|
|
198
208
|
}
|
package/src/index.ts
CHANGED
|
@@ -37,8 +37,8 @@ program
|
|
|
37
37
|
...new Set(options.providers.split(',').map((p) => p.trim())),
|
|
38
38
|
] as Provider[];
|
|
39
39
|
await buildCommand({
|
|
40
|
-
providers: providerList,
|
|
41
|
-
enableOpenApi: options.enableOpenapi || false
|
|
40
|
+
providers: providerList,
|
|
41
|
+
enableOpenApi: options.enableOpenapi || false
|
|
42
42
|
});
|
|
43
43
|
} catch (error) {
|
|
44
44
|
console.error('Build failed:', (error as Error).message);
|