keryx 0.3.2 → 0.3.4
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/initializers/db.ts +2 -1
- package/package.json +6 -6
package/initializers/db.ts
CHANGED
|
@@ -102,6 +102,7 @@ export class DB extends Initializer {
|
|
|
102
102
|
*/
|
|
103
103
|
async generateMigrations() {
|
|
104
104
|
const migrationConfig = {
|
|
105
|
+
dialect: "postgresql",
|
|
105
106
|
schema: path.join("models", "*"),
|
|
106
107
|
dbCredentials: {
|
|
107
108
|
url: config.database.connectionString,
|
|
@@ -115,7 +116,7 @@ export class DB extends Initializer {
|
|
|
115
116
|
try {
|
|
116
117
|
await Bun.write(tmpfilePath, fileContent);
|
|
117
118
|
const { exitCode, stdout, stderr } =
|
|
118
|
-
await $`bun drizzle-kit generate
|
|
119
|
+
await $`bun drizzle-kit generate --config ${tmpfilePath}`;
|
|
119
120
|
logger.trace(stdout.toString());
|
|
120
121
|
if (exitCode !== 0) {
|
|
121
122
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keryx",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -78,7 +78,10 @@
|
|
|
78
78
|
"pg": "^8.18.0",
|
|
79
79
|
"ts-morph": "^27.0.2",
|
|
80
80
|
"typescript": "^5.9.3",
|
|
81
|
-
"zod": "^4.3.6"
|
|
81
|
+
"zod": "^4.3.6",
|
|
82
|
+
"@types/cookie": "^0.6.0",
|
|
83
|
+
"@types/mustache": "^4.2.6",
|
|
84
|
+
"@types/pg": "^8.16.0"
|
|
82
85
|
},
|
|
83
86
|
"peerDependencies": {
|
|
84
87
|
"drizzle-zod": "^0.8.3"
|
|
@@ -86,11 +89,8 @@
|
|
|
86
89
|
"devDependencies": {
|
|
87
90
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
88
91
|
"@types/bun": "latest",
|
|
89
|
-
"@types/cookie": "^0.6.0",
|
|
90
92
|
"@types/formidable": "^3.4.6",
|
|
91
|
-
"
|
|
92
|
-
"@types/pg": "^8.16.0",
|
|
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"
|