chore: update dependencies and oxc tooling

This commit is contained in:
Peter Steinberger
2026-04-10 19:24:20 +01:00
parent 2fc3223ed4
commit 59925c1a74
22 changed files with 397 additions and 276 deletions

View File

@@ -162,6 +162,7 @@ async function runVitestSpecsParallel(specs, concurrency) {
console.error(`[test] starting ${spec.config}`);
const result = await runVitestSpec(spec);
if (result.signal) {
console.error(`[test] ${spec.config} exited by signal ${result.signal}`);
releaseLockOnce();
process.kill(process.pid, result.signal);
return;
@@ -237,8 +238,10 @@ async function main() {
let exitCode = 0;
for (const spec of runSpecs) {
console.error(`[test] starting ${spec.config}`);
const result = await runVitestSpec(spec);
if (result.signal) {
console.error(`[test] ${spec.config} exited by signal ${result.signal}`);
releaseLockOnce();
process.kill(process.pid, result.signal);
return;

9
scripts/tsconfig.json Normal file
View File

@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"noEmit": true,
"types": ["node"]
},
"include": ["**/*.ts"],
"exclude": ["pre-commit/**"]
}

View File

@@ -22,7 +22,12 @@ export function forwardSignalToVitestProcessGroup(params) {
params.kill(target, params.signal);
return true;
} catch (error) {
if (error && typeof error === "object" && "code" in error && error.code === "ESRCH") {
if (
error &&
typeof error === "object" &&
"code" in error &&
(error.code === "ESRCH" || error.code === "EPERM")
) {
return false;
}
throw error;