mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:30:42 +00:00
fix(update): avoid lint-blocked dev installs (#77181)
This commit is contained in:
@@ -35,9 +35,20 @@ const shards = [
|
||||
},
|
||||
];
|
||||
|
||||
const results = await Promise.all(shards.map((shard) => runShard(shard)));
|
||||
const runSerial = process.env.OPENCLAW_OXLINT_SHARDS_SERIAL === "1";
|
||||
const results = runSerial
|
||||
? await runShardsSerial(shards)
|
||||
: await Promise.all(shards.map((shard) => runShard(shard)));
|
||||
process.exitCode = results.find((status) => status !== 0) ?? 0;
|
||||
|
||||
async function runShardsSerial(entries) {
|
||||
const results = [];
|
||||
for (const shard of entries) {
|
||||
results.push(await runShard(shard));
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
async function runShard(shard) {
|
||||
console.error(`[oxlint:${shard.name}] starting`);
|
||||
const child = spawn(process.execPath, [runner, ...shard.args, ...extraArgs], {
|
||||
|
||||
Reference in New Issue
Block a user