fix: 修复 linux 端的安装问题
This commit is contained in:
parent
03b7f9b453
commit
c5ab83a3fc
|
|
@ -54,7 +54,7 @@
|
||||||
"test": "bun test",
|
"test": "bun test",
|
||||||
"check:unused": "knip-bun",
|
"check:unused": "knip-bun",
|
||||||
"health": "bun run scripts/health-check.ts",
|
"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",
|
"docs:dev": "npx mintlify dev",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"rcs": "bun run scripts/rcs.ts"
|
"rcs": "bun run scripts/rcs.ts"
|
||||||
|
|
|
||||||
10
scripts/run-parallel.mjs
Normal file
10
scripts/run-parallel.mjs
Normal 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 })
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user