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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for a different packageRoot #594

Merged
merged 2 commits into from
Mar 2, 2024

Conversation

wkillerud
Copy link
Contributor

@wkillerud wkillerud commented Mar 2, 2024

馃憢 Hello

Thanks for putting this together 馃コ It's worked swimmingly for me so far. I refactored my repo recently so the VS Code extension is no longer on the root-level of the repo, without checking whether all the tools would support that. Turns out this one didn't.

This PR adapts the internals so the extension can be in a non-root folder. Both of these scenarios should be covered. In my case it was the 2nd scenario that caused problems.

  • cwd is root but extension is not
  • cwd is not root, extension is in cwd

Tested OK in https://github.com/wkillerud/some-sass using patch-package

Fixes #32

Copy link
Owner

@felipecrs felipecrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution!

I left some ideas to improve the implementation and minimize the code changes.

Let me know what do you think.

index.js Outdated Show resolved Hide resolved
lib/prepare.js Outdated Show resolved Hide resolved
Adapt so the extension can be in a non-root folder
@felipecrs felipecrs merged commit 7432ce7 into felipecrs:master Mar 2, 2024
6 checks passed
@felipecrs
Copy link
Owner

Thanks a lot for your contribution!

Copy link

github-actions bot commented Mar 2, 2024

馃帀 This PR is included in version 5.7.0 馃帀

The release is available on:

Your semantic-release bot 馃摝馃殌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting package root
2 participants