Repository navigation
Chore/storybook 10 - #289
Open
seanrcollings wants to merge 6 commits into
Open
seanrcollings wants to merge 6 commits into
seanrcollings wants to merge 6 commits into
Conversation
Run the storybook upgrade automigrations (consolidated imports, addon-essentials folded into core, framework-based imports) and clean up what they left behind: drop legacy v8 packages, migrate remaining @storybook/blocks and @storybook/react imports, remove the auto-added addon-mcp, simplify main.ts, and prune stale vitest optimizeDeps excludes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Storybook 10's browser internals import CommonJS packages (semver, use-sync-external-store). Excluding "storybook" from optimizeDeps made Vite serve those raw, so the preview failed with "semver/index.js does not provide an export named 'default'". The remaining exclusions were stale (removed packages, an uninstalled addon, a typo). Co-Authored-By: Claude Opus 5.5 <[email protected]>
The cssprops generator dates from when theme variables lived in CSS and
had to be parsed. They're now TS objects in styles/theme/component.ts,
so stories pass those directly (e.g. cssprops: { dropdown, listbox })
and CssVariablesTable resolves defaults with toCssValue at render time.
Unknown token groups now fail the build instead of silently rendering
an empty table. Removes bin/update-css-props.mts, the generated file,
the getCssProps helper and the storybook:cssprops script, plus the
unused bin/update-storybook-index.py.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The argType helpers are only used by atomic-elements stories and import that package's internals, so they now live in packages/atomic-elements/storybook. The @sb alias points there, which also fixes the TS6059 rootDir errors from stories importing a file outside the package. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate to Storybook 10