yarn icon indicating copy to clipboard operation
yarn copied to clipboard

yarn install removes everything from /client/assets folder

Open kvarc7 opened this issue 10 years ago • 5 comments

Do you want to request a feature or report a bug? bug

What is the current behavior? When I run yarn install everything under the folder client/assets is removed (including all subfolders and files). Is there any flag to prevent this behaviour?

Please mention your node.js, yarn and operating system version. yarn 0.15.1 node 5.10.1 OS: Windows 10

kvarc7 avatar Oct 12 '16 08:10 kvarc7

Do you use bower in that director by any chance?

skuridin avatar Oct 12 '16 09:10 skuridin

Not sure if this is related, but yarn removes the lib/assets folder when installing istanbul. npm install istanbul will recover the folder.

havana59er avatar Oct 12 '16 22:10 havana59er

And I found the culprit - I had a .yarnclean file in my project. After I removed this file, yarn no longer removes the assets folder from istanbul.

havana59er avatar Oct 12 '16 23:10 havana59er

@skuridin ~~no, I'm not using bower~~

Ups, I see bower files within the project, someone from the team added them. I removed them and everything is OK now. Thanks for the hint.

kvarc7 avatar Oct 15 '16 17:10 kvarc7

I have exactly the same problem. yarn removes assets automatically if .yarnclean in the project.

gitawego avatar Oct 19 '16 13:10 gitawego