patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

is there a way to apply patch based on OS the code is running from ?

Open bagussans opened this issue 3 years ago • 1 comments

for example if it run from windows apply patch A, else patch B

bagussans avatar Jul 28 '22 08:07 bagussans

If the NodeJS code needs to be different based on the OS, then instead of handling it with a patch per OS, you should just write the code in a way that it can universally handle different operations systems. You can do this using the os object. Can you share more about your use case?

YasharF avatar May 08 '25 00:05 YasharF