Skip to content
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

Deleting node_modules also clears out all linked directories #17

Open
aequabit opened this issue Aug 8, 2019 · 1 comment
Open

Deleting node_modules also clears out all linked directories #17

aequabit opened this issue Aug 8, 2019 · 1 comment

Comments

@aequabit
Copy link

aequabit commented Aug 8, 2019

Step 1:

"_moduleAliases": {
    "~lib": "lib"
},

Step 2:

yarn

Step 3:
Entire ~lib directory gets cleared

This happened after removing the module because it had already cleared out my source directory two times, the first time permanently wiping out unpushed changes AND deleting my .git folder without even having any module links to my project root.

Yarn: 1.13.0
Node: 11.15.0

@chaudharykiran
Copy link

In my case, I have linked src directory.

"_moduleAliases": {
    "~src": "./src"
}

Doing yarn clear whole src directory. I have lost hrs of works 2 times. one with @ and another using this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants