From e0e0282f10d29107f9a3ac36b5dd11ddb2f05d3b Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 22:49:03 +0000 Subject: [PATCH 1/2] Use Bun for packages and scripts Replace npm with Bun as the package manager and script runner. Astro and Playwright still run on Node, pinned by .nvmrc. - Migrate package-lock.json to bun.lock (same resolved versions) - Add .bun-version and use oven-sh/setup-bun in the visual workflow - Use bunx/bun run in playwright.config.ts, README and AGENTS.md - Hold Renovate bun-version updates, since Cloudflare Pages reads BUN_VERSION from the dashboard, not .bun-version Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DryVDir46sG3viwon3eY7Q --- .bun-version | 1 + .github/workflows/visual.yml | 14 +- AGENTS.md | 14 +- README.md | 10 +- bun.lock | 833 +++++ package-lock.json | 5825 ---------------------------------- package.json | 2 +- playwright.config.ts | 4 +- renovate.json | 5 + 9 files changed, 863 insertions(+), 5845 deletions(-) create mode 100644 .bun-version create mode 100644 bun.lock delete mode 100644 package-lock.json diff --git a/.bun-version b/.bun-version new file mode 100644 index 00000000..1c99cf0e --- /dev/null +++ b/.bun-version @@ -0,0 +1 @@ +1.4.4 diff --git a/.github/workflows/visual.yml b/.github/workflows/visual.yml index 9d127597..891ab681 100644 --- a/.github/workflows/visual.yml +++ b/.github/workflows/visual.yml @@ -18,19 +18,23 @@ jobs: uses: actions/setup-node@v7 with: node-version-file: .nvmrc - cache: npm + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version-file: .bun-version - name: Install dependencies - run: npm ci + run: bun install --frozen-lockfile - name: Install Playwright Chromium - run: npx playwright install --with-deps chromium + run: bunx playwright install --with-deps chromium - name: Build site - run: npm run build + run: bun run build - name: Run visual snapshot tests - run: npm run test:visual + run: bun run test:visual - name: Upload failure artifacts if: failure() diff --git a/AGENTS.md b/AGENTS.md index 5fa0900c..63f7c40d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,12 +2,12 @@ ## Cursor Cloud specific instructions -This repo is a single static **Astro** blog (`austinabbott.dev`, package name `dev-blog`), deployed to Cloudflare Pages. There is no backend, database, or other service — the only "service" is the Astro dev/build process. Commands are the npm scripts in `package.json` (`dev`/`start`, `build`, `preview`, `astro`). +This repo is a single static **Astro** blog (`austinabbott.dev`, package name `dev-blog`), deployed to Cloudflare Pages. There is no backend, database, or other service — the only "service" is the Astro dev/build process. Bun is the package manager and script runner (`bun install`, `bun run