1b5a52ea4d
Replace tsup (esbuild-based) with rslib (rspack-based) across all packages. tsup's built-in nodeProtocolPlugin strips the 'node:' prefix from all Node.js builtins. Unlike node:fs etc., node:sqlite has no unprefixed form, causing ERR_MODULE_NOT_FOUND at runtime. rslib handles node: imports correctly without any workarounds. Changes: - Replace tsup.config.ts with rslib.config.ts in core, daemon, cli - Swap tsup → @rslib/core in devDependencies - Fix log-store.ts params type (Record<string, unknown> → Record<string, string | number>) - Fix logStream.fd type cast in start.ts - Exclude __tests__ from CLI tsconfig to avoid DTS errors - All 356 tests pass, nerve init works correctly Closes #70 小橘 🍊(NEKO Team)
29 lines
595 B
JSON
29 lines
595 B
JSON
{
|
|
"name": "@uncaged/nerve-daemon",
|
|
"version": "0.1.5",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"prepublishOnly": "bash ../../scripts/prepublish-check.sh",
|
|
"build": "rslib build",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@uncaged/nerve-core": "workspace:*",
|
|
"drizzle-orm": "1.0.0-beta.23-c10d10c",
|
|
"yaml": "^2.8.3"
|
|
},
|
|
"devDependencies": {
|
|
"@rslib/core": "^0.21.3",
|
|
"@types/node": "^22.0.0",
|
|
"vitest": "^4.1.5"
|
|
}
|
|
}
|