@geekmidas/cli 0.24.0 → 0.26.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 +18 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +18 -5
- 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 +4 -0
- package/src/init/templates/minimal.ts +3 -0
- package/src/init/templates/serverless.ts +3 -0
- package/src/init/templates/worker.ts +4 -1
- package/src/init/versions.ts +1 -1
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";
|
|
@@ -4293,7 +4293,7 @@ const GEEKMIDAS_VERSIONS = {
|
|
|
4293
4293
|
"@geekmidas/services": "~0.2.0",
|
|
4294
4294
|
"@geekmidas/storage": "~0.1.0",
|
|
4295
4295
|
"@geekmidas/studio": "~0.4.0",
|
|
4296
|
-
"@geekmidas/telescope": "~0.
|
|
4296
|
+
"@geekmidas/telescope": "~0.5.0",
|
|
4297
4297
|
"@geekmidas/testkit": "~0.6.0"
|
|
4298
4298
|
};
|
|
4299
4299
|
|
|
@@ -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,
|
|
@@ -5343,12 +5343,16 @@ const apiTemplate = {
|
|
|
5343
5343
|
name: "api",
|
|
5344
5344
|
description: "Full API with auth, database, services",
|
|
5345
5345
|
dependencies: {
|
|
5346
|
+
"@geekmidas/audit": GEEKMIDAS_VERSIONS["@geekmidas/audit"],
|
|
5346
5347
|
"@geekmidas/constructs": GEEKMIDAS_VERSIONS["@geekmidas/constructs"],
|
|
5347
5348
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5349
|
+
"@geekmidas/events": GEEKMIDAS_VERSIONS["@geekmidas/events"],
|
|
5348
5350
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5351
|
+
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
|
|
5349
5352
|
"@geekmidas/services": GEEKMIDAS_VERSIONS["@geekmidas/services"],
|
|
5350
5353
|
"@geekmidas/errors": GEEKMIDAS_VERSIONS["@geekmidas/errors"],
|
|
5351
5354
|
"@geekmidas/auth": GEEKMIDAS_VERSIONS["@geekmidas/auth"],
|
|
5355
|
+
"@hono/node-server": "~1.14.1",
|
|
5352
5356
|
hono: "~4.8.2",
|
|
5353
5357
|
pino: "~9.6.0"
|
|
5354
5358
|
},
|
|
@@ -5547,9 +5551,12 @@ const minimalTemplate = {
|
|
|
5547
5551
|
name: "minimal",
|
|
5548
5552
|
description: "Basic health endpoint",
|
|
5549
5553
|
dependencies: {
|
|
5554
|
+
"@geekmidas/audit": GEEKMIDAS_VERSIONS["@geekmidas/audit"],
|
|
5550
5555
|
"@geekmidas/constructs": GEEKMIDAS_VERSIONS["@geekmidas/constructs"],
|
|
5551
5556
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5552
5557
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5558
|
+
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
|
|
5559
|
+
"@hono/node-server": "~1.14.1",
|
|
5553
5560
|
hono: "~4.8.2",
|
|
5554
5561
|
pino: "~9.6.0"
|
|
5555
5562
|
},
|
|
@@ -5710,10 +5717,13 @@ const serverlessTemplate = {
|
|
|
5710
5717
|
name: "serverless",
|
|
5711
5718
|
description: "AWS Lambda handlers",
|
|
5712
5719
|
dependencies: {
|
|
5720
|
+
"@geekmidas/audit": GEEKMIDAS_VERSIONS["@geekmidas/audit"],
|
|
5713
5721
|
"@geekmidas/constructs": GEEKMIDAS_VERSIONS["@geekmidas/constructs"],
|
|
5714
5722
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5715
5723
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5716
5724
|
"@geekmidas/cloud": GEEKMIDAS_VERSIONS["@geekmidas/cloud"],
|
|
5725
|
+
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
|
|
5726
|
+
"@hono/node-server": "~1.14.1",
|
|
5717
5727
|
hono: "~4.8.2",
|
|
5718
5728
|
pino: "~9.6.0"
|
|
5719
5729
|
},
|
|
@@ -5821,10 +5831,13 @@ const workerTemplate = {
|
|
|
5821
5831
|
name: "worker",
|
|
5822
5832
|
description: "Background job processing",
|
|
5823
5833
|
dependencies: {
|
|
5834
|
+
"@geekmidas/audit": GEEKMIDAS_VERSIONS["@geekmidas/audit"],
|
|
5824
5835
|
"@geekmidas/constructs": GEEKMIDAS_VERSIONS["@geekmidas/constructs"],
|
|
5825
5836
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5826
|
-
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5827
5837
|
"@geekmidas/events": GEEKMIDAS_VERSIONS["@geekmidas/events"],
|
|
5838
|
+
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5839
|
+
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
|
|
5840
|
+
"@hono/node-server": "~1.14.1",
|
|
5828
5841
|
hono: "~4.8.2",
|
|
5829
5842
|
pino: "~9.6.0"
|
|
5830
5843
|
},
|