keryx 0.3.3 → 0.3.5

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.
@@ -102,10 +102,10 @@ export class DB extends Initializer {
102
102
  */
103
103
  async generateMigrations() {
104
104
  const migrationConfig = {
105
- driver: "pg",
105
+ dialect: "postgresql",
106
106
  schema: path.join("models", "*"),
107
107
  dbCredentials: {
108
- connectionString: config.database.connectionString,
108
+ url: config.database.connectionString,
109
109
  },
110
110
  out: path.join("drizzle"),
111
111
  } satisfies DrizzleMigrateConfig;
@@ -116,7 +116,7 @@ export class DB extends Initializer {
116
116
  try {
117
117
  await Bun.write(tmpfilePath, fileContent);
118
118
  const { exitCode, stdout, stderr } =
119
- await $`bun drizzle-kit generate:pg --config ${tmpfilePath}`;
119
+ await $`bun drizzle-kit generate --config ${tmpfilePath}`;
120
120
  logger.trace(stdout.toString());
121
121
  if (exitCode !== 0) {
122
122
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keryx",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -69,28 +69,28 @@
69
69
  "dependencies": {
70
70
  "@modelcontextprotocol/sdk": "^1.26.0",
71
71
  "colors": "^1.4.0",
72
- "commander": "^12.1.0",
73
72
  "cookie": "^0.6.0",
74
- "drizzle-orm": "^0.45.1",
75
73
  "ioredis": "^5.9.2",
76
74
  "mustache": "^4.2.0",
77
75
  "node-resque": "^9.5.0",
78
76
  "pg": "^8.18.0",
79
77
  "ts-morph": "^27.0.2",
80
78
  "typescript": "^5.9.3",
81
- "zod": "^4.3.6",
82
79
  "@types/cookie": "^0.6.0",
83
80
  "@types/mustache": "^4.2.6",
84
81
  "@types/pg": "^8.16.0"
85
82
  },
86
83
  "peerDependencies": {
87
- "drizzle-zod": "^0.8.3"
84
+ "commander": "^12.1.0",
85
+ "drizzle-orm": "^0.45.1",
86
+ "drizzle-zod": "^0.8.3",
87
+ "zod": "^4.3.6"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@trivago/prettier-plugin-sort-imports": "^5.2.2",
91
91
  "@types/bun": "latest",
92
92
  "@types/formidable": "^3.4.6",
93
- "drizzle-kit": "^0.20.18",
93
+ "drizzle-kit": "^0.31.9",
94
94
  "drizzle-zod": "^0.8.3",
95
95
  "prettier": "^3.8.1",
96
96
  "prettier-plugin-organize-imports": "^4.3.0"
package/util/scaffold.ts CHANGED
@@ -216,7 +216,14 @@ export async function scaffoldProject(
216
216
  },
217
217
  dependencies: {
218
218
  keryx: `^${keryxVersion}`,
219
- ...(options.includeDb ? { "drizzle-zod": "^0.8.3" } : {}),
219
+ commander: "^12.1.0",
220
+ zod: "^4.3.6",
221
+ ...(options.includeDb
222
+ ? {
223
+ "drizzle-orm": "^0.45.1",
224
+ "drizzle-zod": "^0.8.3",
225
+ }
226
+ : {}),
220
227
  },
221
228
  devDependencies: {
222
229
  "@types/bun": "latest",