Skip to content

Commit 4bca460

Browse files
dahliaclaude
andcommitted
Fix docs build race condition by using build:self
The docs build scripts were running 'pnpm run --filter @fedify/* -r build', which caused each package's build script to recursively build its dependencies via 'pnpm --filter @fedify/xxx... run build:self'. When multiple packages ran in parallel, they would try to build shared dependencies concurrently, causing race conditions on dist/ directories. Changed to 'pnpm run --filter @fedify/* -r build:self' so pnpm manages the dependency order and builds each package exactly once. Co-Authored-By: Claude <[email protected]>
1 parent 47cd266 commit 4bca460

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
"x-forwarded-fetch": "^0.2.0"
6464
},
6565
"scripts": {
66-
"dev": "cd ../ && pnpm run --filter '@fedify/*' -r build && cd docs/ && vitepress dev --host",
67-
"build": "cd ../ && pnpm run --filter '@fedify/*' -r build && cd docs/ && NODE_OPTIONS='--max-old-space-size=8192' vitepress build",
68-
"preview": "cd ../ && pnpm run --filter '@fedify/*' -r build && cd docs/ && vitepress preview"
66+
"dev": "cd ../ && pnpm run --filter '@fedify/*' -r build:self && cd docs/ && vitepress dev --host",
67+
"build": "cd ../ && pnpm run --filter '@fedify/*' -r build:self && cd docs/ && NODE_OPTIONS='--max-old-space-size=8192' vitepress build",
68+
"preview": "cd ../ && pnpm run --filter '@fedify/*' -r build:self && cd docs/ && vitepress preview"
6969
}
7070
}

0 commit comments

Comments
 (0)