-
-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
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:
return require.resolve(nodeModuleName, {paths: [projectPath]}).replace(/^(.*\/node_modules\/[^/]*).*/, '$1');
insttead of
return st.find_module_path(nodeModuleName, projectPath);
garronej
Metadata
Metadata
Assignees
Labels
No labels