Skip to content

fix: works with npm/yarn/pnpm link #23

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

farfromrefug
Copy link

Right now we use __dirname to find parent root project. But this wont work in a link situation where __dirname will point to the real folder of the plugin. Now we use process.cwd() which will work in whatever folder we are inside the project (which is what we want). plus it will be much faster as most of the time process.cwd() will already be the app root folder

Right now we use __dirname to find parent root project.
But this wont work in a link situation where __dirname will point to the real folder of the plugin.
Now we use `process.cwd()` which will work in whatever folder we are inside the project (which is what we want).
plus it will be much faster as most of the time `process.cwd()` will already be the app root folder
@cla-bot cla-bot bot added the cla: yes label Dec 1, 2023
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.

1 participant