@geekmidas/cli 0.24.0 → 0.25.0
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/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/init/generators/auth.ts +2 -2
- package/src/init/templates/api.ts +2 -0
- package/src/init/templates/minimal.ts +1 -0
- package/src/init/templates/serverless.ts +1 -0
- package/src/init/templates/worker.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"openapi-typescript": "^7.4.2",
|
|
50
50
|
"prompts": "~2.4.2",
|
|
51
51
|
"@geekmidas/constructs": "~0.6.0",
|
|
52
|
-
"@geekmidas/
|
|
52
|
+
"@geekmidas/envkit": "~0.4.0",
|
|
53
53
|
"@geekmidas/logger": "~0.4.0",
|
|
54
54
|
"@geekmidas/schema": "~0.1.0",
|
|
55
|
-
"@geekmidas/
|
|
55
|
+
"@geekmidas/errors": "~0.1.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/lodash.kebabcase": "^4.1.9",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@geekmidas/testkit": "0.6.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@geekmidas/telescope": "~0.
|
|
67
|
+
"@geekmidas/telescope": "~0.5.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@geekmidas/telescope": {
|
|
@@ -84,7 +84,7 @@ export const logger = createLogger();
|
|
|
84
84
|
// src/auth.ts - better-auth instance with magic link
|
|
85
85
|
const authTs = `import { betterAuth } from 'better-auth';
|
|
86
86
|
import { magicLink } from 'better-auth/plugins';
|
|
87
|
-
import
|
|
87
|
+
import pg from 'pg';
|
|
88
88
|
import { envParser } from './config/env.js';
|
|
89
89
|
import { logger } from './config/logger.js';
|
|
90
90
|
|
|
@@ -99,7 +99,7 @@ const authConfig = envParser
|
|
|
99
99
|
.parse();
|
|
100
100
|
|
|
101
101
|
export const auth = betterAuth({
|
|
102
|
-
database: new Pool({
|
|
102
|
+
database: new pg.Pool({
|
|
103
103
|
connectionString: authConfig.databaseUrl,
|
|
104
104
|
}),
|
|
105
105
|
baseURL: authConfig.baseUrl,
|
|
@@ -12,10 +12,12 @@ export const apiTemplate: TemplateConfig = {
|
|
|
12
12
|
dependencies: {
|
|
13
13
|
'@geekmidas/constructs': GEEKMIDAS_VERSIONS['@geekmidas/constructs'],
|
|
14
14
|
'@geekmidas/envkit': GEEKMIDAS_VERSIONS['@geekmidas/envkit'],
|
|
15
|
+
'@geekmidas/events': GEEKMIDAS_VERSIONS['@geekmidas/events'],
|
|
15
16
|
'@geekmidas/logger': GEEKMIDAS_VERSIONS['@geekmidas/logger'],
|
|
16
17
|
'@geekmidas/services': GEEKMIDAS_VERSIONS['@geekmidas/services'],
|
|
17
18
|
'@geekmidas/errors': GEEKMIDAS_VERSIONS['@geekmidas/errors'],
|
|
18
19
|
'@geekmidas/auth': GEEKMIDAS_VERSIONS['@geekmidas/auth'],
|
|
20
|
+
'@hono/node-server': '~1.14.1',
|
|
19
21
|
hono: '~4.8.2',
|
|
20
22
|
pino: '~9.6.0',
|
|
21
23
|
},
|
|
@@ -13,6 +13,7 @@ export const minimalTemplate: TemplateConfig = {
|
|
|
13
13
|
'@geekmidas/constructs': GEEKMIDAS_VERSIONS['@geekmidas/constructs'],
|
|
14
14
|
'@geekmidas/envkit': GEEKMIDAS_VERSIONS['@geekmidas/envkit'],
|
|
15
15
|
'@geekmidas/logger': GEEKMIDAS_VERSIONS['@geekmidas/logger'],
|
|
16
|
+
'@hono/node-server': '~1.14.1',
|
|
16
17
|
hono: '~4.8.2',
|
|
17
18
|
pino: '~9.6.0',
|
|
18
19
|
},
|
|
@@ -14,6 +14,7 @@ export const serverlessTemplate: TemplateConfig = {
|
|
|
14
14
|
'@geekmidas/envkit': GEEKMIDAS_VERSIONS['@geekmidas/envkit'],
|
|
15
15
|
'@geekmidas/logger': GEEKMIDAS_VERSIONS['@geekmidas/logger'],
|
|
16
16
|
'@geekmidas/cloud': GEEKMIDAS_VERSIONS['@geekmidas/cloud'],
|
|
17
|
+
'@hono/node-server': '~1.14.1',
|
|
17
18
|
hono: '~4.8.2',
|
|
18
19
|
pino: '~9.6.0',
|
|
19
20
|
},
|
|
@@ -14,6 +14,7 @@ export const workerTemplate: TemplateConfig = {
|
|
|
14
14
|
'@geekmidas/envkit': GEEKMIDAS_VERSIONS['@geekmidas/envkit'],
|
|
15
15
|
'@geekmidas/logger': GEEKMIDAS_VERSIONS['@geekmidas/logger'],
|
|
16
16
|
'@geekmidas/events': GEEKMIDAS_VERSIONS['@geekmidas/events'],
|
|
17
|
+
'@hono/node-server': '~1.14.1',
|
|
17
18
|
hono: '~4.8.2',
|
|
18
19
|
pino: '~9.6.0',
|
|
19
20
|
},
|