ds300 / patch-package

Fix broken node modules instantly 🏃🏽‍♀️💨
MIT License
10.4k stars 293 forks source link

Option to ignore mode #292

Open sergejostir opened 3 years ago

sergejostir commented 3 years ago

Hello.

I use Windows PC, but the application requires Linux, so I run it via virtual box (having the folder synced). If I use patch-package, the patch includes a bunch of

old mode 100644
new mode 100755

lines (for every file that was opened on the Windows machine). It it possible to somehow ignore file modes?

kxxt commented 2 years ago

I have both windows & linux installed on my laptop. I also encounter this issue when my projects are on my NTFS volume.

kxxt commented 2 years ago

I forked this repo and implemented this feature.

It seems that this repo is not actively maintained. Feel free to ask me to open a PR if this repo become maintained again.

My fork: https://github.com/kxxt/patch-package NPM package: @kxxt/patch-package

To ignore file mode changes, use my fork and pass this option to the command: --ignore-file-mode.

e.g.

patch-package gatsby --ignore-file-mode
metal450 commented 2 months ago

Bummer this is abandoned - but thanks for the fix! Really needed this too