Skip to content

FIX hoist-internals: remove existing folder/link before linking#1516

Merged
ndelangen merged 1 commit intomasterfrom
fix/hoist-internals-remove-before-linking
Jul 25, 2017
Merged

FIX hoist-internals: remove existing folder/link before linking#1516
ndelangen merged 1 commit intomasterfrom
fix/hoist-internals-remove-before-linking

Conversation

@ndelangen
Copy link
Copy Markdown
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