Skip to content

chore: install the sandboxes from the root workspace - #1358

Merged
dangreen merged 3 commits into
masterfrom
chore/sandboxes-workspace
Nov 30, 2026
Merged

dangreen merged 3 commits into
masterfrom
chore/sandboxes-workspace

Conversation

@dangreen

@dangreen dangreen commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Part 5 of the tooling stack. Based on #1357.

Why

The sandboxes were a separate pnpm workspace with their own lockfile. They installed react-chartjs-2 and chart.js from npm, so:

  • the website previews and the stories that reuse sandbox data ran on the published package, not on the code of the branch;
  • type-checking the sandboxes against src saw two different copies of Chart.js (4.4.7 in the root, 4.5.1 in the sandboxes) and failed on every ref.

What

  • sandboxes/*/* are packages of the root workspace; their own package.json, pnpm-workspace.yaml and lockfile are gone (one install, one lockfile, one Chart.js).
  • A pnpm override links react-chartjs-2 to the workspace root, so sandboxes build and type-check against the sources. StackBlitz is unaffected: it opens a single sandbox folder from GitHub and installs its package.json from npm.
  • pnpm sandboxes:build builds them all; the website workflow uses it.
  • sandboxes/tsconfig.json drops baseUrl/paths (TypeScript 7 no longer supports baseUrl, and the workspace link makes paths unnecessary).
  • The Storybook alias to src is no longer needed.

Checked locally

  • pnpm sandboxes:build (all 17), tsc --noEmit -p sandboxes/tsconfig.json, pnpm test:types.
  • Storybook rebuilt without the alias; all 21 stories render a painted chart in headless Chrome with no console errors.

Stack

  1. chore: agent skills and notes (chore: add agent skills lock and agent notes #1354)
  2. ci: Node.js 26, pnpm 12 and workflows (ci: update Node.js, pnpm and workflows #1355)
  3. build: Vite and Vitest (build: build and test with Vite #1356)
  4. chore: Storybook 10 (chore: update Storybook to 10 #1357)
  5. chore: sandboxes in the root workspace ← this PR
  6. chore: lint with oxlint
  7. chore(deps): update dependencies
  8. docs: move the website to Starlight
  9. build!: drop the CommonJS build (build!: drop the CommonJS build #1362)

🤖 Generated with Claude Code

@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.75%. Comparing base (97f8ab5) to head (3bff260).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1358   +/-   ##
=======================================
  Coverage   93.75%   93.75%           
=======================================
  Files           3        3           
  Lines          80       80           
  Branches       20       20           
=======================================
  Hits           75       75           
  Misses          3        3           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The sandboxes were a separate pnpm workspace with their own lockfile, so they got another copy of Chart.js and ran on the package from npm. In the root workspace they share one install and run on the sources of the package; StackBlitz still installs each one with its own package.json from npm.
The sandboxes resolve the package to its sources through the workspace now.
The sandboxes resolve the package to its sources through the workspace now.
@dangreen
dangreen force-pushed the chore/sandboxes-workspace branch from f4d09a6 to 3bff260 Compare November 30, 2026 15:42
@dangreen
dangreen marked this pull request as ready for review November 30, 2026 15:44
@dangreen
dangreen merged commit cfc7317 into master Nov 30, 2026
11 checks passed
@dangreen
dangreen deleted the chore/sandboxes-workspace branch November 30, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant