Skip to content

Drop unused production dependencies - #4

Merged
microbit-matt-hillsdon merged 3 commits into
mainfrom
typedoc-dev-dependency
Aug 29, 2026
Merged

Drop unused production dependencies#4
microbit-matt-hillsdon merged 3 commits into
mainfrom
typedoc-dev-dependency

Conversation

@microbit-matt-hillsdon

Copy link
Copy Markdown
Contributor

No description provided.

typedoc is only used by the docs script, but as a runtime dependency its
typescript peer range (capped at 5.8.x for typedoc 0.27) constrains
consumers' typescript version: classroom's Renovate typescript 5.9 bump
produced a lockfile npm ci rejects.

react/react-dom were listed in both dependencies and peerDependencies,
forcing react on consumers of the vanilla entry point. They are now
devDependencies (for Storybook) alongside the existing peer ranges.
importHelpers is not enabled, so tsc inlines its helpers and nothing
imports tslib.
They were compiled into dist despite not being exported, dragging their
base64-js import in as a runtime dependency; it is now dev-only. The
build uses a new tsconfig.build.json while tsconfig.json still covers
everything for the editor and the new typecheck script in ci, so the
stories remain typechecked (Storybook's own build only transpiles).
@microbit-matt-hillsdon
microbit-matt-hillsdon merged commit c44b1f0 into main Aug 29, 2026
4 checks passed
@microbit-matt-hillsdon
microbit-matt-hillsdon deleted the typedoc-dev-dependency branch August 29, 2026 12:06
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