-
Notifications
You must be signed in to change notification settings - Fork 103
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
feat(cra): move to react-docgen-typescript-plugin #149
Conversation
@@ -58,7 +58,7 @@ | |||
"husky": "^4.2.3", | |||
"jest": "24.9.0", | |||
"lint-staged": "^10.0.8", | |||
"prettier": "^1.19.1", | |||
"prettier": "^2.0.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required for use with import type...
.
!typescriptOptions || | ||
// NOTE: These are set by default in Storybook 6. | ||
const { | ||
typescriptOptions = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we somehow keep this in sync with Storybook defaults? If I understand this code, adding adefault for reactDocgen
"fixes the bug", but the reactDocgenTypescriptOptions
are still out of sync with Storybook's:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These actually should already come through in Storybook v6 - so this is only for older Storybook versions. This default above would only occur if we didn't receive the defaults from Storybook.
8b9620b
to
00846be
Compare
const { | ||
typescriptOptions = { | ||
reactDocgen: 'react-docgen-typescript', | ||
reactDocgenTypescriptOptions: {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we need to add the extra options here?
0d14c46
to
d6d815d
Compare
d6d815d
to
2184b85
Compare
This updates the CRA preset to mirror the config as of #11106.