@geekmidas/cli 0.0.1 → 0.0.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/dist/{build-DN7u1ccT.cjs → build-DNUd8HBL.cjs} +2 -1
- package/dist/{build-BgAllbWO.mjs → build-SdnSQPW7.mjs} +2 -1
- package/dist/build.cjs +1 -1
- package/dist/build.mjs +1 -1
- package/dist/{cli-D6VgkVGJ.mjs → cli-CfgR8d0p.mjs} +1 -1
- package/dist/{cli-eVdV1MSk.cjs → cli-DkqbpY0m.cjs} +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/build.ts +2 -1
|
@@ -74,6 +74,7 @@ async function generateServerFile(outputDir, endpoints, envParserPath, envParser
|
|
|
74
74
|
const imports = Array.from(importsByFile.entries()).map(([importPath, exports$1]) => `import { ${exports$1.join(", ")} } from '${importPath}';`).join("\n");
|
|
75
75
|
const allExportNames = endpoints.map(({ exportName }) => exportName);
|
|
76
76
|
const content = `import { HonoEndpoint } from '@geekmidas/api/hono';
|
|
77
|
+
import { Endpoint } from '@geekmidas/api/server';
|
|
77
78
|
import { HermodServiceDiscovery } from '@geekmidas/api/services';
|
|
78
79
|
import { Hono } from 'hono';
|
|
79
80
|
import ${envParserImportPattern} from '${relativeEnvParserPath}';
|
|
@@ -83,7 +84,7 @@ ${imports}
|
|
|
83
84
|
export function createApp(app?: Hono): Hono {
|
|
84
85
|
const honoApp = app || new Hono();
|
|
85
86
|
|
|
86
|
-
const endpoints = [
|
|
87
|
+
const endpoints: Endpoint<any, any, any, any, any, any>[] = [
|
|
87
88
|
${allExportNames.join(",\n ")}
|
|
88
89
|
];
|
|
89
90
|
|
|
@@ -73,6 +73,7 @@ async function generateServerFile(outputDir, endpoints, envParserPath, envParser
|
|
|
73
73
|
const imports = Array.from(importsByFile.entries()).map(([importPath, exports]) => `import { ${exports.join(", ")} } from '${importPath}';`).join("\n");
|
|
74
74
|
const allExportNames = endpoints.map(({ exportName }) => exportName);
|
|
75
75
|
const content = `import { HonoEndpoint } from '@geekmidas/api/hono';
|
|
76
|
+
import { Endpoint } from '@geekmidas/api/server';
|
|
76
77
|
import { HermodServiceDiscovery } from '@geekmidas/api/services';
|
|
77
78
|
import { Hono } from 'hono';
|
|
78
79
|
import ${envParserImportPattern} from '${relativeEnvParserPath}';
|
|
@@ -82,7 +83,7 @@ ${imports}
|
|
|
82
83
|
export function createApp(app?: Hono): Hono {
|
|
83
84
|
const honoApp = app || new Hono();
|
|
84
85
|
|
|
85
|
-
const endpoints = [
|
|
86
|
+
const endpoints: Endpoint<any, any, any, any, any, any>[] = [
|
|
86
87
|
${allExportNames.join(",\n ")}
|
|
87
88
|
];
|
|
88
89
|
|
package/dist/build.cjs
CHANGED
package/dist/build.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_build = require('./build-
|
|
2
|
+
const require_build = require('./build-DNUd8HBL.cjs');
|
|
3
3
|
const require_openapi = require('./openapi-BKjcm03Q.cjs');
|
|
4
4
|
const commander = require_chunk.__toESM(require("commander"));
|
|
5
5
|
|
package/dist/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
require('./config-B-D8cs7V.cjs');
|
|
3
3
|
require('./loadEndpoints-CYFwuPZr.cjs');
|
|
4
|
-
require('./build-
|
|
4
|
+
require('./build-DNUd8HBL.cjs');
|
|
5
5
|
require('./openapi-BKjcm03Q.cjs');
|
|
6
|
-
require('./cli-
|
|
6
|
+
require('./cli-DkqbpY0m.cjs');
|
package/dist/cli.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env -S npx tsx
|
|
2
2
|
require('./config-B-D8cs7V.cjs');
|
|
3
3
|
require('./loadEndpoints-CYFwuPZr.cjs');
|
|
4
|
-
require('./build-
|
|
4
|
+
require('./build-DNUd8HBL.cjs');
|
|
5
5
|
require('./openapi-BKjcm03Q.cjs');
|
|
6
|
-
require('./cli-
|
|
6
|
+
require('./cli-DkqbpY0m.cjs');
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
package/src/build.ts
CHANGED
|
@@ -164,6 +164,7 @@ async function generateServerFile(
|
|
|
164
164
|
const allExportNames = endpoints.map(({ exportName }) => exportName);
|
|
165
165
|
|
|
166
166
|
const content = `import { HonoEndpoint } from '@geekmidas/api/hono';
|
|
167
|
+
import { Endpoint } from '@geekmidas/api/server';
|
|
167
168
|
import { HermodServiceDiscovery } from '@geekmidas/api/services';
|
|
168
169
|
import { Hono } from 'hono';
|
|
169
170
|
import ${envParserImportPattern} from '${relativeEnvParserPath}';
|
|
@@ -173,7 +174,7 @@ ${imports}
|
|
|
173
174
|
export function createApp(app?: Hono): Hono {
|
|
174
175
|
const honoApp = app || new Hono();
|
|
175
176
|
|
|
176
|
-
const endpoints = [
|
|
177
|
+
const endpoints: Endpoint<any, any, any, any, any, any>[] = [
|
|
177
178
|
${allExportNames.join(',\n ')}
|
|
178
179
|
];
|
|
179
180
|
|