# bun-monorepo-workflows > Use this when installing dependencies, running scripts, filtering packages, or migrating this monorepo from pnpm to Bun (bun.lock, workspaces, bun ci) while keeping Cloudflare Workers + Wrangler workflows working. - Author: Alexander Asomba - Repository: alexasomba/cloudflare-workers-saas-kit - Version: 20251228153759 - Stars: 2 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/alexasomba/cloudflare-workers-saas-kit - Web: https://mule.run/skillshub/@@alexasomba/cloudflare-workers-saas-kit~bun-monorepo-workflows:20251228153759 --- --- name: bun-monorepo-workflows description: Use this when installing dependencies, running scripts, filtering packages, or migrating this monorepo from pnpm to Bun (bun.lock, workspaces, bun ci) while keeping Cloudflare Workers + Wrangler workflows working. --- # Bun monorepo workflows (Cloudflare Workers SaaS kit) This repo is migrating to Bun as the package manager (some older branches/PRs may still be pnpm-based). This skill covers (1) day-to-day Bun equivalents for pnpm workflows and (2) a safe pnpm → Bun migration checklist. ## Multiple Bun installs (PATH gotcha) It’s common to have Bun installed via **pnpm**, **Homebrew**, and/or **~/.bun**. If Bun appears to “do nothing” (no output, no errors), you may be hitting a **broken shim earlier on PATH**. Debug: - `which bun` and `which bunx` - `ls -l $(which bun) $(which bunx)` Repo fix / workaround: - Prefer the workspace shims: - `./scripts/bun` (forces a real Bun binary) - `./scripts/bunx` (routes to `bun x`) VS Code note: changes to `terminal.integrated.env.osx` only apply to **new terminals** (close/reopen the integrated terminal). ## Quick commands (Bun) - Install all deps: `bun install` - CI install (frozen lockfile): `bun ci` (equivalent to `bun install --frozen-lockfile`) - Run a root script: `bun run