[BUG] Workspace symlinks go to wrong path if directory path starts with ~ #2447
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
On my work computer the setup that is enforced upon me is for code to be placed inside a root-level directory called
~source-code
- i.e.:If I create a workspace in that project, the generated symlink goes to e.g.
../~source-code/projects/foo/bar
rather than simply to../bar
meaning that the dependency is not properly resolved.I've confirmed that the symlinking works correctly when the
~
is not present, and also when it is not at the very start of the directory tree. I've not checked whether the problem arises for any other special characters.Expected Behavior:
In the example above, I would expect the symlink to point to
../bar
Steps To Reproduce:
~
, e.g./~something
npm install
Environment:
The text was updated successfully, but these errors were encountered: