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

Consider when the file is used with pnpm isolated mode. #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

sharky98
Copy link

Under pnpm isolated mode, the variable __dirname return ./node_modules/.pnpm/@[email protected]/node_modules/@mdi/util.

Due to the isolated mode of pnpm (default mode), the module @mdi/svg is not found at ${__dirname}/../.

This changes will detect if we have a node_modules under the process.cwd(). If so, it will use this folder to find @mdi/svg.

Note, I am not using yarn, so maybe this one is not working either, but in any case, it should fallback to the previous 0.3.2 behavior if @mdi/svgis not found in node_modules.

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