Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React: Move typescript from devDependencies to peerDependencies #23179

Merged
merged 13 commits into from
Jul 10, 2023

Conversation

chakAs3
Copy link
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"]

@chakAs3 chakAs3 requested a review from ndelangen June 28, 2023 07:12
@JReinhold
Copy link
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