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

Bug: Remove the duplicated manager entry for storybook #119

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Sep 21, 2023

What I did:

We were adding the manager entry twice.
When storybook resolves from an absolute path it prefers to only add explicit file-exports:
(warning this code is overly complex)
https://github.com/storybookjs/storybook/blob/0b5dc9a4fd8f62e2bd071677d2e83ccdbddbf5b7/code/lib/core-common/src/presets.ts#L72-L177

We're already adding the manager entry here:
https://github.com/chromaui/storybook-visual-tests/blob/29085ad4155ed77ed3b04091cd156605e89045e5/src/index.ts#L18-L23

So really all storybook has to do is treat this as a preset.

@ndelangen ndelangen self-assigned this Sep 21, 2023
@ndelangen ndelangen added the bug Classification: Something isn't working label Sep 21, 2023
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

Makes sense

@ndelangen ndelangen merged commit 09536f2 into main Sep 21, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Classification: Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants