Prevent yarn from deleting files under vendor

I'm developing on a Windows machine with a Linux docker image. I'm using node-sass which has native bindings stored under node_modules/node-sass/vendor

Every time I add or update a package using yarn, I have to enter the docker image and manually re-run npm rebuild node-sass in order to reinstate the linux-x64 binding.

Is there a way to tell yarn to not delete files in this folder?

728x90

0 Answers Prevent yarn from deleting files under vendor