-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support globs inside a node module folder #1
Comments
Since the developer do not answer, how can we use the fixed version of the module with npm (or yarn) ? |
We just forked it and referenced my fork directly in our package.json...
I just made a PR so you can see the code diff though. |
Thank you ! |
We have a need to import all files in a folder that exist in a child installed node module.
We expect this...
...to resolve to here...
currentWorkingDirectory/node_modules/@scopeName/packageName/intl/*.json
...but instead, it tries to resolve to here...
currentWorkingDirectory/sourceFilePath/@scopeName/packageName/intl/*.json
...which of course breaks because the path doesn't exist.
One simple fix might be to do the following in
index.js
...I've tested this locally and it appears to work against relative paths, regular node module paths, and scoped npm package paths.
Thanks!
@jhicken Thanks for the help digging into this issue!
The text was updated successfully, but these errors were encountered: