chore(pkg): P6 — single package manager (npm) + pg pool allowExitOnIdle
- delete pnpm-lock.yaml + pnpm-workspace.yaml (6-week-stale invalid placeholder); package-lock.json is the live one (has @types/pg). set [email protected]. gitignore pnpm-lock/workspace so they can't creep back (audit M1) - kb/_client.ts pool: allowExitOnIdle:true — process exits when connections idle, fixes kb commands hanging the event loop (audit M3, pool.end never called) Co-Authored-By: Claude <[email protected]>
This commit is contained in:
1 parent
571ac27ab2
commit
7988ead926
5 files changed
+6
-1849
No files matched your search
@@ -24,3 +24,5 @@ generated/
|
||||
!.env.example
|
||||
.DS_Store
|
||||
tsconfig.vitest-temp.json
|
||||
pnpm-lock.yaml
|
||||
pnpm-workspace.yaml
|
||||
+2
-1
@@ -40,5 +40,6 @@
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"packageManager": "[email protected]"
|
||||
}
|
||||
Generated
-1845
File diff suppressed because it is too large.
Load diff
@@ -1,3 +0,0 @@
|
||||
allowBuilds:
|
||||
better-sqlite3: set this to true or false
|
||||
esbuild: set this to true or false
|
||||
@@ -24,6 +24,8 @@ const pool = new Pool({
|
||||
database: process.env.PGDATABASE || 'ssw',
|
||||
max: 10,
|
||||
idleTimeoutMillis: 30000,
|
||||
// P6 资源: 所有连接 idle 时允许进程退出, 避免 kb 命令跑完 pool 挂住事件循环 (audit M3)
|
||||
allowExitOnIdle: true,
|
||||
});
|
||||
|
||||
export { SCHEMA };
|
||||
|
||||
Reference in new issue
Block a user