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] - Detect local addons for windows machines #10786

Merged
merged 1 commit into from
May 14, 2020

Conversation

RuneKR
Copy link

@RuneKR RuneKR commented May 14, 2020

Issue: Local addons do not work on windows see issue

What I did

I updated the local compare function to use the fs package to check if the file exists. Seemed to be the most simple solution. Wrong local paths to files that do not exists will now be interpreted as not being local files.

How to test

  • Use a local addon on a windows machine

Note

Would like to get this change into a 5.x if possible. Can do another PR on that.

@RuneKR RuneKR changed the title using fs to detect local file [fix] - Detect local addons for windows machines May 14, 2020
@ndelangen ndelangen added bug patch:yes Bugfix & documentation PR that need to be picked to main branch labels May 14, 2020
@ndelangen ndelangen added this to the 5.3.x milestone May 14, 2020
@ndelangen
Copy link
Member

That's actually a smart solution!

@ndelangen ndelangen merged commit dd66456 into storybookjs:next May 14, 2020
@RuneKR
Copy link
Author

RuneKR commented May 15, 2020

Hi @ndelangen i realised i missed updating the test https://github.com/RuneKR/storybook/blob/next/lib/core/src/server/presets.test.js#L400

Do you want me to fix that and also do another PR for 5.x? I assume this PR got released in 6.x

shilman pushed a commit that referenced this pull request Jul 7, 2020
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants