From c5ab83a3fc54b4347561253fdd8bd49d73bbe986 Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Fri, 17 Apr 2026 09:51:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20linux=20=E7=AB=AF?= =?UTF-8?q?=E7=9A=84=E5=AE=89=E8=A3=85=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- scripts/run-parallel.mjs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 scripts/run-parallel.mjs diff --git a/package.json b/package.json index f11469bb7..0a35f410b 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "test": "bun test", "check:unused": "knip-bun", "health": "bun run scripts/health-check.ts", - "postinstall": "node scripts/postinstall.cjs && node scripts/setup-chrome-mcp.mjs", + "postinstall": "node scripts/run-parallel.mjs scripts/postinstall.cjs scripts/setup-chrome-mcp.mjs", "docs:dev": "npx mintlify dev", "typecheck": "tsc --noEmit", "rcs": "bun run scripts/rcs.ts" diff --git a/scripts/run-parallel.mjs b/scripts/run-parallel.mjs new file mode 100644 index 000000000..8ae12a642 --- /dev/null +++ b/scripts/run-parallel.mjs @@ -0,0 +1,10 @@ +import { spawn } from "node:child_process" + +const scripts = process.argv.slice(2) +if (scripts.length === 0) { + process.exit(0) +} + +for (const script of scripts) { + spawn(process.execPath, [script], { stdio: "inherit", shell: false }) +}