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 hoist-internals: remove existing folder/link before linking #1516

Merged
merged 1 commit into from
Jul 25, 2017

Conversation

ndelangen
Copy link
Member

Issue: -sometimes known packages are not linked by lerna, because it feels like the semver doesn't match -

This can happen when the version is something like 3.2.0-alpha.8 which is strictly speaking not valid semver.

We always want our packages linked, no matter the semver.

What I did

This fixes it, by always linking.
This resolves the problem where hoist-internals would fail to symlink a folder, because it the target was a folder instead of a symlink.

The way I fixed it was by removing the target before creating the symlink.

How to test

  • Do a clean install & bootstrap
  • check if all folders in @storybook/ are symlinks

@ndelangen ndelangen added the maintenance User-facing maintenance tasks label Jul 25, 2017
@ndelangen ndelangen requested a review from shilman July 25, 2017 08:24
@ndelangen ndelangen merged commit b7fb4b3 into master Jul 25, 2017
@ndelangen ndelangen deleted the fix/hoist-internals-remove-before-linking branch July 25, 2017 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant