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.
28 lines
772 B
JSON
28 lines
772 B
JSON
{
|
|
"name": "@bytelyst/create-app",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "CLI tools for scaffolding ByteLyst product repos and code",
|
|
"type": "module",
|
|
"bin": {
|
|
"create-app": "./dist/scaffolder.js",
|
|
"gen-api-route": "./dist/generators/api-routes.js",
|
|
"gen-agents-md": "./dist/generators/agents-md.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run --pool forks",
|
|
"create-app": "tsx src/scaffolder.ts",
|
|
"gen:api-route": "tsx src/generators/api-routes.ts",
|
|
"gen:agents-md": "tsx src/generators/agents-md.ts"
|
|
},
|
|
"devDependencies": {
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.3",
|
|
"vitest": "^3.0.5"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "http://localhost:3300/api/packages/bytelyst/npm/"
|
|
}
|
|
}
|