We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92c19a commit f78feccCopy full SHA for f78fecc
src/package-linker.js
@@ -177,9 +177,12 @@ export default class PackageLinker {
177
}
178
179
180
- // fs copy can't copy through a symlink, so we replace those with real paths to workpsaces
181
for (const [symlink, realpath] of symlinkPaths.entries()) {
182
if (dest.indexOf(symlink + path.sep) === 0) {
+ // after hoisting we end up with this structure
183
+ // root/node_modules/workspace-package(symlink)/node_modules/package-a
184
+ // fs.copy operations can't copy files through a symlink, so all the paths under workspace-package
185
+ // need to be replaced with a real path, except for the symlink root/node_modules/workspace-package
186
dest = dest.replace(symlink, realpath);
187
188
0 commit comments