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

hotfix: remove storybook types build and add its own tsconfig #3354

Merged
merged 2 commits into from Feb 10, 2023

Conversation

ckifer
Copy link
Member

@ckifer ckifer commented Feb 10, 2023

Description

Breaking change in 2.4.0 where type key is no longer referencing the correct type index file

Related Issue

#3353

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

"jsx": "react",
"module": "commonjs",
"noImplicitAny": true,
"noEmit": true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't emit for the storybook

"allowSyntheticDefaultImports": true,
"baseUrl": "."
},
"include": ["./stories"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only include stories folder in this subfolder

@@ -15,5 +15,5 @@
"allowSyntheticDefaultImports": true,
"baseUrl": "."
},
"include": ["./src/**/*", "types.d.ts", "storybook/stories"]
"include": ["./src/**/*", "types.d.ts"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't include storybook

we want types folder to be flat rather than

  • src/index
  • storybook/*

@ckifer ckifer added bug General bug label typescript PRs or Issues surrounding Types or TS refactoring P0 Critical priority issues labels Feb 10, 2023
@ckifer ckifer merged commit 56682b3 into recharts:master Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug General bug label P0 Critical priority issues typescript PRs or Issues surrounding Types or TS refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant