fix: restore node:sqlite prefix stripped by tsup bundler

tsup's built-in node-protocol-plugin strips the 'node:' prefix from
all builtins. Unlike node:fs etc., node:sqlite has no unprefixed form,
causing ERR_MODULE_NOT_FOUND at runtime.

- Add onSuccess hook to both cli and daemon tsup configs to restore
  'node:sqlite' imports in bundled output
- Fix log-store params type to Record<string, string | number>

小橘 🍊(NEKO Team)
This commit is contained in:
2026-04-23 09:32:20 +00:00
parent 37588df402
commit 57550ccfdb
4 changed files with 38 additions and 2 deletions
+4 -1
View File
@@ -59,9 +59,12 @@ importers:
specifier: ^2.8.3
version: 2.8.3
devDependencies:
'@types/node':
specifier: ^22.0.0
version: 22.19.17
vitest:
specifier: ^4.1.5
version: 4.1.5(@types/node@25.6.0)(vite@8.0.9(@types/node@25.6.0)(esbuild@0.27.7)(yaml@2.8.3))
version: 4.1.5(@types/node@22.19.17)(vite@8.0.9(@types/node@22.19.17)(esbuild@0.27.7)(yaml@2.8.3))
packages: