Тёмный

Patching Packages - The ULTIMATE Guide 

Alexander Lichter
Подписаться 10 тыс.
Просмотров 2,4 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@TheAlexLichter
@TheAlexLichter 3 месяца назад
Which package manager do you usually prefer and why? 👀
@lovelyboy8056
@lovelyboy8056 3 месяца назад
pnpm because it’s a new. It’s use less space on ssd and it faster than yarn and npm how I read about it
@namesiz
@namesiz 3 месяца назад
pnpm because I easily solve all the problems I encounter (which I cannot solve in others)
@slava_trushkin
@slava_trushkin 3 месяца назад
pnpm because it handles monorepos way better than others
@EvestDev
@EvestDev 3 месяца назад
Bun, its fast and it has a lot of cool built in features :)
@randomtimessomehow
@randomtimessomehow 3 месяца назад
pnpm, because I had some weird npm bug once, didn't know how to fix it so I switched lol also heard it's faster
@randomtimessomehow
@randomtimessomehow 3 месяца назад
What the hell, how come I needed this yesterday for the first time and this is exactly when you released this video 😃
@TheAlexLichter
@TheAlexLichter 3 месяца назад
Perfect timing 🔥👌🏻
@MrTosk2
@MrTosk2 2 месяца назад
Two (and a half 😅) extra notes that might be helpful: 1) Using `pnpm-patch-i` package to patch dependencies with pnpm noticeable improves patching experience - this little tool creates a temp directory with a better name, automatically opens vscode and commits the patch with a single key press. Extra tip: in the temp directory, run `git init . && git add .` before making any changes to be able to preview the diff of your changes. Just don't forget to run `rm -rf .git` before committing a patch :) 2) One extra caveats of patching dependencies is that if you ever decide to migrate to a different package manager (say from npm to pnpm), you would have to tweak your patch files as well because might have a slightly different format (it's definitely different between these two - compare 9:08 and 15:07) 2.5) Use `-y` right after `npx` command to skip that annoying installation prompt 😄 Thank you for all your great, truly helpful and valuable videos.
@levrairaphaeI
@levrairaphaeI 2 месяца назад
Thanks for this great content Alexander, you are the GOAT
@TheAlexLichter
@TheAlexLichter 2 месяца назад
Thank you so much Raphael 🙏🙏🙏
@MrFelixClement
@MrFelixClement 2 месяца назад
Talking about package managers, I would love to ear what you have to say about "Bun" and its usage/benefits with Nuxt
@michaelpumo83
@michaelpumo83 3 месяца назад
This is legit useful - thanks so much for a great video.
@TheAlexLichter
@TheAlexLichter 3 месяца назад
Glad it was helpful Michael!
@alimaher1
@alimaher1 3 месяца назад
Waited for this for so long time. Thanks, Alex ♥
@TheAlexLichter
@TheAlexLichter 3 месяца назад
You are very welcome 🙌
@QueeeeenZ
@QueeeeenZ 3 месяца назад
How do you patch those packages that ship minified code? They only have a dist/ in node_modules which is minified and impossible to edit. Also how would you patch larger projects with TypeScript that requires building?
@TheAlexLichter
@TheAlexLichter 3 месяца назад
Minified: if you find the corresponding source via debugging there, otherwise fork + publish a temp NPM package under your name. Same for having TS support too etc
@EvestDev
@EvestDev 3 месяца назад
ooh frick, thats so cool 🤩, how did i not known about this O.O. Thx for the super cool video :)) No i don't have more excuses for anything that doesn't work XD
@TheAlexLichter
@TheAlexLichter 3 месяца назад
You are welcome! Exactly 👀 and a good chance to send in PRs too 👌🏻
@NicolasVanAarsen
@NicolasVanAarsen 3 месяца назад
Oh, I didn't know that, nice tip!
@TheAlexLichter
@TheAlexLichter 3 месяца назад
Glad it was helpful! ☺️
@lbmgary
@lbmgary 3 месяца назад
holy crap... how do I not know things? :| Thanks bruv!
@TheAlexLichter
@TheAlexLichter 3 месяца назад
You are welcome 🙌🏻
@djxak
@djxak 3 месяца назад
Yarn and Pnpm patch flows do not make sense to me. How could I test my changes and know that it is time to create a patch, if I must edit not the live version of the package, but a temporary version of it? And, unfortunately, most packages can't be patched this way anyway. Because you need to patch their sources, not their distribution package.
Далее
Dynamic Rendering in 2024 - SSR only for Crawlers?
15:59
КОГДА НАКРОШИЛ НА ПОЛ #shorts
00:19
LOLLIPOP-SCHUTZ-GADGET 🍭 DAS BRAUCHST DU!
00:28
Просмотров 11 млн
Route Rules in Nuxt - SSR, SSG, ISR and more
25:43
Просмотров 3,5 тыс.
HTMX Sucks
25:16
Просмотров 125 тыс.
BEWARE these Laravel attributes | Real World Laravel
19:10
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Caching in Nitro 💾
22:53
Просмотров 3,2 тыс.
I Finally Changed Package Managers
4:01
Просмотров 92 тыс.
Emacs 29 released!
12:29
Просмотров 10 тыс.