Bug: Remove the duplicated manager entry for storybook #119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.