Root cause: tinypool worker teardown calls kill() which returns EPERM in the act_runner host environment on Node.js v25.2.1. Tests pass but the vitest process crashes during cleanup, causing CI failure. Fix: --pool forks CLI flag on every package/service test script, plus pool: 'forks' in all vitest.config.ts files. This uses child_process.fork() worker management which handles termination cleanly. 60 package.json files updated, 10 vitest.config.ts files updated.
35 lines
843 B
JSON
35 lines
843 B
JSON
{
|
|
"name": "@bytelyst/sync",
|
|
"version": "0.1.0",
|
|
"description": "Offline-first sync engine with configurable storage adapters and conflict resolution",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run --pool forks",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@bytelyst/api-client": "workspace:*",
|
|
"@bytelyst/telemetry-client": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.12.0",
|
|
"typescript": "^5.7.3",
|
|
"vitest": "^3.0.5"
|
|
},
|
|
"peerDependencies": {
|
|
"@bytelyst/api-client": "workspace:*"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "http://localhost:3300/api/packages/bytelyst/npm/"
|
|
}
|
|
}
|