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

fix: ensure duplicate components are written to unique files #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stufisher
Copy link

In our project we have components that are wrapped which means docgen detects components with the same name. This patch makes sure that each component is written to a unique file. Currently if two components have the same name then stringified props get concatenated together resulting in invalid json.

@atomicpages
Copy link
Owner

👋 Hey there, thanks for the contrib! The changes are a bit difficult to follow due to formatting changes. I'll pick the functional bits and merge them in. I'll LYK when it's published

@stufisher
Copy link
Author

stufisher commented Apr 29, 2024

Urgh sorry, the pre-commit hook must have used a newer version of prettier, i can put the style changes back if you like? The functional changes are 109 - 131

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.

None yet

2 participants