patch-package | Fix broken node modules instantly

preview_player
Показать описание
patch-package is a tool that has saved me a couple of times when I found a bug in an npm package and needed to fix it ASAP.

Links from video:

----
#benawad
Рекомендации по теме
Комментарии
Автор

Wow, i was looking for something like this since forever. Thank you Ben for recommending this tool.

MrREALball
Автор

I've known about this for some time, but haven't used it. Actually, I forgot about it (thanks for the reminder). Love the walk through...super helpful and now it's more likely I'll remember this when I need it. Thanks!

ChrisGeirman
Автор

Thank you, i've been looking for this the whole time, straight to the point!

nguyennguyenluong
Автор

Yeah patch-package is amazing! I needed it for Typescript conflicts between dependencies 😍

katywings
Автор

I've been using this for a while now in our design system, it's super awesome. Although, be careful of using ^ version installs as the patch doesn't get correctly applied if you get a few patch bumps, happened to me today and app teams had a broken version of a menu drop down... 😬

joefads
Автор

Thanks for recommending this tool. I remember watching this video near release data and it's only now I need it. TY.

waynevanson
Автор

Thank you Ben. I really enjoyed the way you explained it.

armantaheri
Автор

Incredibly useful package for larger NPM packages, especially some with bad coding practices. I needed to use this for MedusaJS (among the worst coding practices I've ever seen) to stop verbose logging of EVERY request made to the API that isn't disabled, even in production.

gosnooky
Автор

this is awesome! thank you for making a tutorial on it. your a rock star!

bantinggamer
Автор

Thanks man! I've been thinking of a package like this a month ago!

francisaguilar
Автор

I think yarn 2 will have a "patch" protocol, which you can use to modify files in node modules. But on the other hand, this seems much easier and cleaner than doing it using "yarn patch"..

DavidSmith-efeh
Автор

My god... This is so helpful!! Thank you!!!

ZehnGen
Автор

Thank you, "postinstall" was what I was missing

abdulbasir
Автор

Thanks I had to do the same and was looking for some experience!

kipsta
Автор

I haven't found a use for this until today due to firebase and reactfire. It's doing "import * as firebase from 'firebase/app'" instead of "import firebase from 'firebase/app'". Thanks for this!

acollierr
Автор

A helpful VSCode plugin is 'Format Toggler' which enables toggling 'format on save' via single click on the status bar.

momolojo
Автор

Yup ... I even used it for my own package recently because it's so much faster :D

Parmigiano
Автор

Used to replace them with node fs in postinstall pretty similar but patch-package really neat.

KimhunX
Автор

Dose this help when i want to fix some package per deep version to be compatible to react 18

ProgrammingWithOsku
Автор

I've used this library before, it's great for fix things fast! But you can also use the fork from the PR if there's any

BetuUuUu