We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently denoify does not work well with packages inside yarn workspaces because modules are mostly hoisted into the root node_modules directory.
getInstalledVersionPackageJsonFactory can't find these packages when they are hoisted.
getInstalledVersionPackageJsonFactory
One way to fix this would be to use require.resolve instead by doing something like:
return require.resolve(nodeModuleName, {paths: [projectPath]}).replace(/^(.*\/node_modules\/[^/]*).*/, '$1');
insttead of
return st.find_module_path(nodeModuleName, projectPath);
The text was updated successfully, but these errors were encountered:
Fantastic investigation
Sorry, something went wrong.
#23: Support for yarn workspaces / when the dependencies are installe…
dc5984f
…d in a parent directory
GitBook: [#23] No subject
b25e32a
No branches or pull requests
Currently denoify does not work well with packages inside yarn workspaces because modules are mostly hoisted into the root node_modules directory.
getInstalledVersionPackageJsonFactory
can't find these packages when they are hoisted.One way to fix this would be to use require.resolve instead by doing something like:
insttead of
The text was updated successfully, but these errors were encountered: