Skip to content

Replacing __dirname with process.cwd()#2

Open
nalejandroveron wants to merge 1 commit intojsxtools:masterfrom
nalejandroveron:master
Open

Replacing __dirname with process.cwd()#2
nalejandroveron wants to merge 1 commit intojsxtools:masterfrom
nalejandroveron:master

Conversation

@nalejandroveron
Copy link

There are cases (like when you use Yarn workspaces) where the config files cannot be properly resolved using __dirname. This will make the lookup based on process.cwd() which looks to be resolving for both cases.

Thanks for this great plugin, tho!

Copy link

@jacobroufa jacobroufa left a comment

Choose a reason for hiding this comment

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

I encountered the same issue with yarn/npm workspaces, and this change resolves my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants