mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 07:10:23 +00:00
chore: update dependencies and oxc tooling
This commit is contained in:
@@ -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
9
scripts/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["**/*.ts"],
|
||||
"exclude": ["pre-commit/**"]
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user