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 }) +}