Revert upstream pnpm switch; keep bun for the UI build

The merge auto-adopted upstream's pnpm switch (#1645) in tests/e2e/
global-setup.ts and ui/package.json, but our fork builds the UI with
bun (vercel.json + the E2E workflow's setup-bun). That left the
Playwright globalSetup running `corepack pnpm install --frozen-lockfile`
with no pnpm-lock.yaml, failing E2E at UI build time.

Revert global-setup.ts and ui/package.json to the dev (bun) baseline,
drop the merge-added ui/pnpm-lock.yaml, and remove the re-added
ui/AGENTS.md (our fork had deleted it).
This commit is contained in:
Adam Moussa 2026-06-30 16:20:41 -04:00
parent 5df29c81af
commit 5c3ca6e615
No known key found for this signature in database
5 changed files with 4 additions and 11964 deletions

View file

@ -14,9 +14,9 @@ export default function globalSetup() {
if (existsSync(shell) && !process.env.E2E_FORCE_UI_BUILD) return;
if (!existsSync(resolve(ui, "node_modules"))) {
execSync("corepack pnpm install --frozen-lockfile", { cwd: ui, stdio: "inherit" });
execSync("bun install", { cwd: ui, stdio: "inherit" });
}
execSync("corepack pnpm run build", {
execSync("bun run build", {
cwd: ui,
stdio: "inherit",
env: { ...process.env, VITE_DASHBOARD_API_BASE_URL: `http://127.0.0.1:${port}` },

View file

@ -1,12 +0,0 @@
# AGENTS.md
This file applies to all work under `ui/`.
## Package manager
- Use **pnpm** for dashboard dependency management and script execution.
- Run UI scripts with `pnpm run <script>` (for example, `pnpm run typecheck`, `pnpm run lint`, `pnpm run test`, `pnpm run build`).
- Install or update UI dependencies with `pnpm install` / `pnpm add` only.
- Do **not** use npm in this directory: no `npm install`, `npm ci`, `npm run`, `npx`, or npm lockfile changes.
- Do **not** use Bun in this directory: no `bun install`, `bun add`, `bun run`, `bunx`, or Bun lockfile changes.
- If a command must use npm or Bun, it belongs outside `ui/` in a subtree that explicitly owns that package-manager configuration and lockfiles.

View file

@ -7,7 +7,7 @@ This is a template for a new TanStack Start project with React, TypeScript, and
To add components to your app, run the following command:
```bash
pnpm dlx shadcn@latest add button
npx shadcn@latest add button
```
This will place the ui components in the `components` directory.

View file

@ -1,11 +1,10 @@
{
"name": "open-swe-dashboard",
"private": true,
"packageManager": "pnpm@11.9.0",
"type": "module",
"scripts": {
"dev": "vite dev --port 3000",
"build": "node --max-old-space-size=4096 ./node_modules/vite/bin/vite.js build",
"build": "vite build",
"preview": "vite preview",
"test": "vitest run",
"lint": "eslint",
@ -56,7 +55,6 @@
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.2.0",
"httpxy": "0.5.3",
"jsdom": "^27.4.0",
"prettier": "^3.8.1",
"prettier-plugin-tailwindcss": "^0.8.0",

11946
ui/pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff