Skip to content

feat(storybook-astro): fork storybook-astro 1.17.0 for Astro 7 and Vite 8 - #76

Closed
systemfsoftware-bot wants to merge 4 commits into
mainfrom
storybook-astro-fork
Closed

systemfsoftware-bot wants to merge 4 commits into
mainfrom
storybook-astro-fork

Conversation

@systemfsoftware-bot

Copy link
Copy Markdown
Contributor

Adds a fork of storybook-astro (framework and renderer packages, upstream commit ef554bb, v1.17.0) so .astro components render as Storybook stories.

  • Packages: @systemfsoftware/storybook-astro-framework and @systemfsoftware/storybook-astro-renderer under packages/storybook-astro/. Upstream history is not kept, as with packages/atom.
  • Licence: the upstream code is MIT, notice kept in each package's NOTICE; our changes are Apache-2.0.
  • Toolchain: tsdown build, attw, oxlint, vitest 5, TypeScript 7 for the workspace and TypeScript 6.0.3 inside the framework (docgen needs the JavaScript compiler API that TypeScript 7 does not ship). Astro 7.4.8, Vite 8, Storybook 10.6.2.
  • Library fixes: docgen read TypeScript flag values inlined for TypeScript 5, which TypeScript 6 renumbered, so optional literal unions stopped becoming select controls; an optional string no longer reports a one-member union; type fixes for Vite 8; the declaration build externalises the optional framework plugins.
  • Lint: the packages' oxlint.config.ts turns off the Effect-idiom, test-naming and unsafe-any rules the upstream code does not follow; promise, throw and suppression rules stay on. All inline suppressions were removed.

Checked locally: lint, typecheck, test, build, attw for both packages; dprint; lint:suppressions.

systemfsoftware-bot and others added 4 commits November 17, 2026 18:48
… for Astro 7 and Vite 8

Adds @systemfsoftware/storybook-astro-framework and -renderer from
storybook-astro/storybook-astro at ef554bb (MIT, kept in NOTICE; our changes are
Apache-2.0), built with tsdown and checked with attw like the other packages.

Library fixes: docgen read inlined TypeScript flag values that TypeScript 6
renumbered, so optional literal unions stopped becoming select controls; an
optional string no longer reports a one-member union; the declaration build
and tests pass with TypeScript 6, Vite 8 and Astro 7.4.8.
@systemfsoftware-bot

Copy link
Copy Markdown
Contributor Author

Superseded by a clean-room implementation of these packages, written against public Astro and Storybook APIs and extending the shared oxlint preset with no per-package relaxation, licensed Apache-2.0. This upstream 1.17.0 snapshot is not merged.

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