build: move the dashboard and e2e packages from npm to pnpm
This commit is contained in:
16 files changed
+2700
-3644
No files matched your search
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user