Skip to content

Commit 0abdb9e

Browse files
dzhelezovclaude
andcommitted
fix(build): provision fast-check from a temp dir outside the clone
npm walks up to the nearest package.json, so installing fast-check inside the cloned ponder workspace tripped on the post-rename workspace. Install it in a mktemp dir and copy fast-check + pure-rand into the core's node_modules. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 2013fd4 commit 0abdb9e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/sync-upstream.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ if [ "${2:-}" = "--test" ]; then
5959
# because renaming the core to @subsquid/ponder orphans sibling workspace packages (e.g. benchmark's
6060
# `ponder@workspace:*`), so a lockfile re-resolve (which a new package.json dep would force) fails.
6161
echo "▶ provisioning fast-check (dev-only, for the property tests)"
62-
FCDIR="$WORK/.fastcheck"; mkdir -p "$FCDIR"
63-
( cd "$FCDIR" && npm install --no-audit --no-fund --silent fast-check@^3 )
62+
# OUTSIDE the clone so npm doesn't walk up into the pnpm workspace root.
63+
FCDIR="$(mktemp -d)"
64+
( cd "$FCDIR" && npm init -y >/dev/null 2>&1 && npm install --no-audit --no-fund --silent fast-check@^3 )
6465
cp -R "$FCDIR/node_modules/fast-check" "$FCDIR/node_modules/pure-rand" "$CORE/node_modules/"
66+
rm -rf "$FCDIR"
6567
echo "▶ running Portal-layer tests"
6668
( cd "$CORE" && pnpm exec vitest run --config vite.portal.config.ts )
6769
fi

0 commit comments

Comments
 (0)