@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.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import prompts from "prompts";
|
|
|
26
26
|
|
|
27
27
|
//#region package.json
|
|
28
28
|
var name = "@geekmidas/cli";
|
|
29
|
-
var version = "0.
|
|
29
|
+
var version = "0.25.0";
|
|
30
30
|
var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
|
|
31
31
|
var private$1 = false;
|
|
32
32
|
var type = "module";
|
|
@@ -4292,7 +4292,7 @@ const GEEKMIDAS_VERSIONS = {
|
|
|
4292
4292
|
"@geekmidas/services": "~0.2.0",
|
|
4293
4293
|
"@geekmidas/storage": "~0.1.0",
|
|
4294
4294
|
"@geekmidas/studio": "~0.4.0",
|
|
4295
|
-
"@geekmidas/telescope": "~0.
|
|
4295
|
+
"@geekmidas/telescope": "~0.5.0",
|
|
4296
4296
|
"@geekmidas/testkit": "~0.6.0"
|
|
4297
4297
|
};
|
|
4298
4298
|
|
|
@@ -4364,7 +4364,7 @@ export const logger = createLogger();
|
|
|
4364
4364
|
`;
|
|
4365
4365
|
const authTs = `import { betterAuth } from 'better-auth';
|
|
4366
4366
|
import { magicLink } from 'better-auth/plugins';
|
|
4367
|
-
import
|
|
4367
|
+
import pg from 'pg';
|
|
4368
4368
|
import { envParser } from './config/env.js';
|
|
4369
4369
|
import { logger } from './config/logger.js';
|
|
4370
4370
|
|
|
@@ -4379,7 +4379,7 @@ const authConfig = envParser
|
|
|
4379
4379
|
.parse();
|
|
4380
4380
|
|
|
4381
4381
|
export const auth = betterAuth({
|
|
4382
|
-
database: new Pool({
|
|
4382
|
+
database: new pg.Pool({
|
|
4383
4383
|
connectionString: authConfig.databaseUrl,
|
|
4384
4384
|
}),
|
|
4385
4385
|
baseURL: authConfig.baseUrl,
|
|
@@ -5342,12 +5342,16 @@ const apiTemplate = {
|
|
|
5342
5342
|
name: "api",
|
|
5343
5343
|
description: "Full API with auth, database, services",
|
|
5344
5344
|
dependencies: {
|
|
5345
|
+
"@geekmidas/audit": GEEKMIDAS_VERSIONS["@geekmidas/audit"],
|
|
5345
5346
|
"@geekmidas/constructs": GEEKMIDAS_VERSIONS["@geekmidas/constructs"],
|
|
5346
5347
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5348
|
+
"@geekmidas/events": GEEKMIDAS_VERSIONS["@geekmidas/events"],
|
|
5347
5349
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5350
|
+
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
|
|
5348
5351
|
"@geekmidas/services": GEEKMIDAS_VERSIONS["@geekmidas/services"],
|
|
5349
5352
|
"@geekmidas/errors": GEEKMIDAS_VERSIONS["@geekmidas/errors"],
|
|
5350
5353
|
"@geekmidas/auth": GEEKMIDAS_VERSIONS["@geekmidas/auth"],
|
|
5354
|
+
"@hono/node-server": "~1.14.1",
|
|
5351
5355
|
hono: "~4.8.2",
|
|
5352
5356
|
pino: "~9.6.0"
|
|
5353
5357
|
},
|
|
@@ -5546,9 +5550,12 @@ const minimalTemplate = {
|
|
|
5546
5550
|
name: "minimal",
|
|
5547
5551
|
description: "Basic health endpoint",
|
|
5548
5552
|
dependencies: {
|
|
5553
|
+
"@geekmidas/audit": GEEKMIDAS_VERSIONS["@geekmidas/audit"],
|
|
5549
5554
|
"@geekmidas/constructs": GEEKMIDAS_VERSIONS["@geekmidas/constructs"],
|
|
5550
5555
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5551
5556
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5557
|
+
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
|
|
5558
|
+
"@hono/node-server": "~1.14.1",
|
|
5552
5559
|
hono: "~4.8.2",
|
|
5553
5560
|
pino: "~9.6.0"
|
|
5554
5561
|
},
|
|
@@ -5709,10 +5716,13 @@ const serverlessTemplate = {
|
|
|
5709
5716
|
name: "serverless",
|
|
5710
5717
|
description: "AWS Lambda handlers",
|
|
5711
5718
|
dependencies: {
|
|
5719
|
+
"@geekmidas/audit": GEEKMIDAS_VERSIONS["@geekmidas/audit"],
|
|
5712
5720
|
"@geekmidas/constructs": GEEKMIDAS_VERSIONS["@geekmidas/constructs"],
|
|
5713
5721
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5714
5722
|
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5715
5723
|
"@geekmidas/cloud": GEEKMIDAS_VERSIONS["@geekmidas/cloud"],
|
|
5724
|
+
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
|
|
5725
|
+
"@hono/node-server": "~1.14.1",
|
|
5716
5726
|
hono: "~4.8.2",
|
|
5717
5727
|
pino: "~9.6.0"
|
|
5718
5728
|
},
|
|
@@ -5820,10 +5830,13 @@ const workerTemplate = {
|
|
|
5820
5830
|
name: "worker",
|
|
5821
5831
|
description: "Background job processing",
|
|
5822
5832
|
dependencies: {
|
|
5833
|
+
"@geekmidas/audit": GEEKMIDAS_VERSIONS["@geekmidas/audit"],
|
|
5823
5834
|
"@geekmidas/constructs": GEEKMIDAS_VERSIONS["@geekmidas/constructs"],
|
|
5824
5835
|
"@geekmidas/envkit": GEEKMIDAS_VERSIONS["@geekmidas/envkit"],
|
|
5825
|
-
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5826
5836
|
"@geekmidas/events": GEEKMIDAS_VERSIONS["@geekmidas/events"],
|
|
5837
|
+
"@geekmidas/logger": GEEKMIDAS_VERSIONS["@geekmidas/logger"],
|
|
5838
|
+
"@geekmidas/schema": GEEKMIDAS_VERSIONS["@geekmidas/schema"],
|
|
5839
|
+
"@hono/node-server": "~1.14.1",
|
|
5827
5840
|
hono: "~4.8.2",
|
|
5828
5841
|
pino: "~9.6.0"
|
|
5829
5842
|
},
|