docs: fix bun workspace command examples

This commit is contained in:
vince 2026-06-20 05:51:18 +02:00
parent e93f4aabb7
commit 72309c0c09

View file

@ -114,7 +114,7 @@ Create root `package.json` as the workspace orchestrator:
"scripts": { "scripts": {
"dev": "turbo dev --filter=@dimensionlab/web", "dev": "turbo dev --filter=@dimensionlab/web",
"build": "turbo build", "build": "turbo build",
"preview": "bun --cwd apps/web run preview", "preview": "bun run --cwd apps/web preview",
"storybook": "turbo storybook --filter=@dimensionlab/ui", "storybook": "turbo storybook --filter=@dimensionlab/ui",
"build-storybook": "turbo build-storybook --filter=@dimensionlab/ui", "build-storybook": "turbo build-storybook --filter=@dimensionlab/ui",
"check": "turbo check", "check": "turbo check",
@ -122,8 +122,8 @@ Create root `package.json` as the workspace orchestrator:
"test:unit": "turbo test:unit", "test:unit": "turbo test:unit",
"test:e2e": "turbo test:e2e --filter=@dimensionlab/web", "test:e2e": "turbo test:e2e --filter=@dimensionlab/web",
"test:qa": "turbo test:qa", "test:qa": "turbo test:qa",
"db:generate": "bun --cwd apps/web run db:generate", "db:generate": "bun run --cwd apps/web db:generate",
"db:check": "bun --cwd apps/web run db:check" "db:check": "bun run --cwd apps/web db:check"
}, },
"devDependencies": { "devDependencies": {
"turbo": "^2.5.0" "turbo": "^2.5.0"
@ -251,9 +251,9 @@ Remove `dashboardDocumentToUiDashboard` from `packages/ui/src/index.ts`.
Run: Run:
```sh ```sh
bun --cwd packages/ui run build bun run --cwd packages/ui build
bun --cwd packages/ui run check bun run --cwd packages/ui check
bun --cwd packages/ui run test:unit bun run --cwd packages/ui test:unit
``` ```
Expected: PASS and `packages/ui/dist` contains `index.js`, `index.d.ts`, and Expected: PASS and `packages/ui/dist` contains `index.js`, `index.d.ts`, and
@ -308,8 +308,8 @@ In `apps/web/src/app.css`, replace local UI imports with:
Run: Run:
```sh ```sh
bun --cwd apps/web run check bun run --cwd apps/web check
bun --cwd apps/web run test:unit bun run --cwd apps/web test:unit
``` ```
Expected: PASS. Expected: PASS.