fix: 修复 linux 端的安装问题

This commit is contained in:
claude-code-best
2026-04-17 09:51:59 +08:00
parent 03b7f9b453
commit c5ab83a3fc
2 changed files with 11 additions and 1 deletions

View File

@@ -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"

10
scripts/run-parallel.mjs Normal file
View File

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