@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/dist/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ const node_module = require_chunk.__toESM(require("node:module"));
|
|
|
27
27
|
|
|
28
28
|
//#region package.json
|
|
29
29
|
var name = "@geekmidas/cli";
|
|
30
|
-
var version = "0.
|
|
30
|
+
var version = "0.25.0";
|
|
31
31
|
var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
|
|
32
32
|
var private$1 = false;
|
|
33
33
|
var type = "module";
|
|
@@ -4365,7 +4365,7 @@ export const logger = createLogger();
|
|
|
4365
4365
|
`;
|
|
4366
4366
|
const authTs = `import { betterAuth } from 'better-auth';
|
|
4367
4367
|
import { magicLink } from 'better-auth/plugins';
|
|
4368
|
-
import
|
|
4368
|
+
import pg from 'pg';
|
|
4369
4369
|
import { envParser } from './config/env.js';
|
|
4370
4370
|
import { logger } from './config/logger.js';
|
|
4371
4371
|
|
|
@@ -4380,7 +4380,7 @@ const authConfig = envParser
|
|
|
4380
4380
|
.parse();
|
|
4381
4381
|
|
|
4382
4382
|
export const auth = betterAuth({
|
|
4383
|
-
database: new Pool({
|
|
4383
|
+
database: new pg.Pool({
|
|
4384
4384
|
connectionString: authConfig.databaseUrl,
|
|
4385
4385
|
}),
|
|
4386
4386
|
baseURL: authConfig.baseUrl,
|
|
@@ -5345,10 +5345,12 @@ const apiTemplate = {
|
|
|
5345
5345
|
dependencies: {
|
|
5346
5346
|
"@geekmidas/constructs": GEEKMIDAS_VERSIONS["@geekmidas/constructs"],
|
|
5347
5347
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5348
|
+
"@geekmidas/events": GEEKMIDAS_VERSIONS["@geekmidas/events"],
|
|
5348
5349
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5349
5350
|
"@geekmidas/services": GEEKMIDAS_VERSIONS["@geekmidas/services"],
|
|
5350
5351
|
"@geekmidas/errors": GEEKMIDAS_VERSIONS["@geekmidas/errors"],
|
|
5351
5352
|
"@geekmidas/auth": GEEKMIDAS_VERSIONS["@geekmidas/auth"],
|
|
5353
|
+
"@hono/node-server": "~1.14.1",
|
|
5352
5354
|
hono: "~4.8.2",
|
|
5353
5355
|
pino: "~9.6.0"
|
|
5354
5356
|
},
|
|
@@ -5550,6 +5552,7 @@ const minimalTemplate = {
|
|
|
5550
5552
|
"@geekmidas/constructs": GEEKMIDAS_VERSIONS["@geekmidas/constructs"],
|
|
5551
5553
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5552
5554
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5555
|
+
"@hono/node-server": "~1.14.1",
|
|
5553
5556
|
hono: "~4.8.2",
|
|
5554
5557
|
pino: "~9.6.0"
|
|
5555
5558
|
},
|
|
@@ -5714,6 +5717,7 @@ const serverlessTemplate = {
|
|
|
5714
5717
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5715
5718
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5716
5719
|
"@geekmidas/cloud": GEEKMIDAS_VERSIONS["@geekmidas/cloud"],
|
|
5720
|
+
"@hono/node-server": "~1.14.1",
|
|
5717
5721
|
hono: "~4.8.2",
|
|
5718
5722
|
pino: "~9.6.0"
|
|
5719
5723
|
},
|
|
@@ -5825,6 +5829,7 @@ const workerTemplate = {
|
|
|
5825
5829
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5826
5830
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5827
5831
|
"@geekmidas/events": GEEKMIDAS_VERSIONS["@geekmidas/events"],
|
|
5832
|
+
"@hono/node-server": "~1.14.1",
|
|
5828
5833
|
hono: "~4.8.2",
|
|
5829
5834
|
pino: "~9.6.0"
|
|
5830
5835
|
},
|