Skip to content

React: Move typescript from devDependencies to peerDependencies#23179

Merged
ndelangen merged 13 commits into
nextfrom
chaks/fix-ts-deps-react
Jul 10, 2023
Merged

React: Move typescript from devDependencies to peerDependencies#23179
ndelangen merged 13 commits into
nextfrom
chaks/fix-ts-deps-react

Conversation

@chakAs3
Copy link
Copy Markdown
Contributor

@chakAs3 chakAs3 commented Jun 21, 2023

Closes #

What I did

cra/default-js or any project using @storybook/react will break in runtime, if typescript was not provided, to fix that react should have it peerDeps with optional=true in peerDependenciesMeta

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • If this PR should be tested against many or all sandboxes,
    make sure to add the ci:merged or ci:daily GH label to it.
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

Comment thread code/frameworks/react-webpack5/package.json
@chakAs3 chakAs3 requested a review from ndelangen June 28, 2023 07:12
Comment thread code/renderers/react/package.json Outdated
@JReinhold
Copy link
Copy Markdown
Contributor

@chakAs3 based on the CI failure I think you forgot to update the lock file when you set "typescript": "*"

@ndelangen ndelangen merged commit 4292d59 into next Jul 10, 2023
@ndelangen ndelangen deleted the chaks/fix-ts-deps-react branch July 10, 2023 10:57
@github-actions github-actions Bot mentioned this pull request Jul 10, 2023
14 tasks
@shilman shilman changed the title Dependencies: Move typescript from devDependencies to peerDependencies React: Move typescript from devDependencies to peerDependencies Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants