привіт! є питання: якщо уявити ситуацію, що наші депенденсі ссилаютсья на ріізні версії одної і тої ж ліби, як це відобразитьсся в лок файлі? і яка версія в результаті буде обрана?
Sure I will spend half of my time fixing conflicts in the lockfile, no one working in a company will do this, next you'll tell me to fix conflicts in my built and minimized webpack output file 😅 I get the point but nowadays it's not possible, I use ncu to update packages and everytime I do this I clear the lockfile. So it's useful for the new dev that just want to npm i but that's pretty much it
It looks like you are missing the point. If you open any project that exists it will have a lock file. Every time when you "just remove" lock file you app can break because a dependency of dependency was updated. So removing it is not a typical or safe workflow for any company.
WATCH NEXT: Javascript Interview Questions and Answers - Dominate Your Next Interview - ruclips.net/video/wnYKH2dO620/видео.htmlsi=5DfbGEfhXWiiv0a_
Very good video about concepts and most important with examples! Well explained, thks!
Glad it was helpful!
Great explanation, thanks 💯
Glad it was helpful!
Respect from India
Thank you!
Thank you !!
You're welcome!
Thanks
Welcome!
привіт! є питання: якщо уявити ситуацію, що наші депенденсі ссилаютсья на ріізні версії одної і тої ж ліби, як це відобразитьсся в лок файлі? і яка версія в результаті буде обрана?
Привет. Если депенденси могут использовать одну версию те >1.0
Subbed
Sure I will spend half of my time fixing conflicts in the lockfile, no one working in a company will do this, next you'll tell me to fix conflicts in my built and minimized webpack output file 😅
I get the point but nowadays it's not possible, I use ncu to update packages and everytime I do this I clear the lockfile. So it's useful for the new dev that just want to npm i but that's pretty much it
It looks like you are missing the point. If you open any project that exists it will have a lock file. Every time when you "just remove" lock file you app can break because a dependency of dependency was updated. So removing it is not a typical or safe workflow for any company.
Take a shot every time he says "dependency"
This programmers games :D