keryx 0.3.1 → 0.3.3
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 +3 -2
- package/package.json +5 -5
package/initializers/db.ts
CHANGED
|
@@ -31,7 +31,7 @@ export class DB extends Initializer {
|
|
|
31
31
|
async initialize() {
|
|
32
32
|
const dbContainer = {} as {
|
|
33
33
|
db: ReturnType<typeof drizzle>;
|
|
34
|
-
pool: Pool
|
|
34
|
+
pool: InstanceType<typeof Pool>;
|
|
35
35
|
};
|
|
36
36
|
return Object.assign(
|
|
37
37
|
{
|
|
@@ -102,9 +102,10 @@ export class DB extends Initializer {
|
|
|
102
102
|
*/
|
|
103
103
|
async generateMigrations() {
|
|
104
104
|
const migrationConfig = {
|
|
105
|
+
driver: "pg",
|
|
105
106
|
schema: path.join("models", "*"),
|
|
106
107
|
dbCredentials: {
|
|
107
|
-
|
|
108
|
+
connectionString: config.database.connectionString,
|
|
108
109
|
},
|
|
109
110
|
out: path.join("drizzle"),
|
|
110
111
|
} satisfies DrizzleMigrateConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keryx",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
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,10 +89,7 @@
|
|
|
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
|
-
"@types/mustache": "^4.2.6",
|
|
92
|
-
"@types/pg": "^8.16.0",
|
|
93
93
|
"drizzle-kit": "^0.20.18",
|
|
94
94
|
"drizzle-zod": "^0.8.3",
|
|
95
95
|
"prettier": "^3.8.1",
|