build: move the dashboard and e2e packages from npm to pnpm

This commit is contained in:
sam committed 2026-10-26 22:15:26 +11:00
1 parent b7c8828426
commit efb9b011cd
16 files changed
+2700 -3644

No files matched your search

+2 -2
View File
@@ -70,11 +70,11 @@ fs.writeFileSync(p, JSON.stringify(s, null, 2) + "\n");
# tools onto the default PATH instead.
$SUDO ln -sf /usr/local/go/bin/* "$GOBIN"/* /usr/local/bin/
# Warm module and npm caches when the checkout is already present.
# Warm module and pnpm caches when the checkout is already present.
repo=${CLAUDE_PROJECT_DIR:-$PWD}
if [ -f "$repo/go.mod" ] && grep -q archie-core "$repo/go.mod"; then
(cd "$repo" && go mod download && go -C tools mod download)
(cd "$repo/ui" && npm ci --no-audit --no-fund)
(cd "$repo/ui" && corepack enable pnpm && pnpm install --frozen-lockfile)
fi
go version
+1 -1
View File
@@ -29,7 +29,7 @@ trap 'rm -rf "$out"' EXIT
# failure here is staleness rather than toolchain noise. It is: vite is
# configured to emit fixed asset names (no content hashes), and rebuilding an
# unchanged tree produces byte-identical output.
if ! build_log="$(cd ui && npm run build --silent -- --outDir "$out" --emptyOutDir 2>&1)"; then
if ! build_log="$(cd ui && pnpm --silent run build --outDir "$out" --emptyOutDir 2>&1)"; then
echo "$build_log" >&2
echo 'the dashboard does not build; fix that before checking freshness' >&2
exit 1