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

Fixes findPackageLocator on parent directories #2061

Merged
merged 2 commits into from
Oct 28, 2020
Merged

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Oct 28, 2020

What's the problem this PR addresses?
The findPackageLocator function was incorrectly handling the case where the path in parameter was the parent folder of the current project. When that happened, the .. string was turned into ./../, which got detected as part of the root workspace by the function (due to the path now being prefixed by ./).

How did you fix it?
Tweaked the RegExp to make sure that .. was turned into ../, but without the leading ./.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@arcanis arcanis merged commit 7abc794 into master Oct 28, 2020
@arcanis arcanis deleted the mael/pnp-parent-folder branch October 28, 2020 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant