Commit 34dba94
chore(scripts): port build-with-ad4m-link.sh from Flux
The companion Flux PR already uses scripts/build-with-ad4m-link.sh for
the cross-repo build workflow — CI / reviewers set BRANCH (or rely on
auto-detected CI env vars) and the script clones the matching ad4m
branch, builds core + connect, rewrites pnpm.overrides to file:./ad4m/*,
and rebuilds the consumer.
This is the exact same script, adapted for WE:
- GitHub PR resolution URL points at coasys/we (was coasys/flux).
- Drops the ad4m-hooks helpers / react / vue build + override steps —
WE only consumes @coasys/ad4m and @coasys/ad4m-connect.
- find -name 'dist' walks apps/ and packages/ instead of views/ and
packages/ (matches WE's layout).
- Vite cache clear is scoped to the WE tree (excludes ./ad4m/* so we
don't nuke the linked ad4m checkout's own cache).
- Heap bump to --max-old-space-size=8192 (WE's build hits OOM at
4096 on this workspace; see daily memory note).
Usage (mirrors Flux):
BRANCH=feat/query-abort scripts/build-with-ad4m-link.sh
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent c6ce71d commit 34dba94
1 file changed
Lines changed: 72 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
0 commit comments