Skip to content

Commit c5ab83a

Browse files
fix: 修复 linux 端的安装问题
1 parent 03b7f9b commit c5ab83a

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"test": "bun test",
5555
"check:unused": "knip-bun",
5656
"health": "bun run scripts/health-check.ts",
57-
"postinstall": "node scripts/postinstall.cjs && node scripts/setup-chrome-mcp.mjs",
57+
"postinstall": "node scripts/run-parallel.mjs scripts/postinstall.cjs scripts/setup-chrome-mcp.mjs",
5858
"docs:dev": "npx mintlify dev",
5959
"typecheck": "tsc --noEmit",
6060
"rcs": "bun run scripts/rcs.ts"

scripts/run-parallel.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { spawn } from "node:child_process"
2+
3+
const scripts = process.argv.slice(2)
4+
if (scripts.length === 0) {
5+
process.exit(0)
6+
}
7+
8+
for (const script of scripts) {
9+
spawn(process.execPath, [script], { stdio: "inherit", shell: false })
10+
}

0 commit comments

Comments
 (0)