Testing NPM packages locally with yalc
ฝัง
- เผยแพร่เมื่อ 6 พ.ย. 2022
- Harminder Virk the creator of AdonisJS showed me yalc - a package that simplifies testing NPM packages locally.
LINKS 🔗
Article
dominuskelvin.dev/blog/testin...
Harminder on Twitter
/ amanvirk1
treblle-adonisjs
github.com/Treblle/treblle-ad...
Treblle's website
treblle.com
STAY IN TOUCH 👋
Follow me on Twitter 🐦 - / dominus_kelvin
Subscribe to my newsletter 📧 - newsletter.dominuskelvin.dev
QUESTIONS...?
Join the Discord Server 💬 - sailscasts.com/community
Learn Web Development 📖 - sailscasts.com/courses
#yalc #npm #javascript #nodejs #nodejstutorial #webdevelopment #coding #programming #vim #vscode #softwareengineering #codinglife #webdesign #webdev #javascript #programmerhumor #codinghumor #software #softwareengineer #softwaredeveloper #softwaredevelopment - วิทยาศาสตร์และเทคโนโลยี
This is what I was looking for! Thank you, Kelvin!
npm link is a mess.
I’m glad you like it. I will be doing a series that will cover one more option for testing packages locally
on typescrip return an error with cannot find module even after run npm i command
Save my ass
My search was "npm link local package react".
Search result:
1st video some unknown guy with 33 likes
2nd video some yalc shit
what the hell is wrong with youtube?!
😅
I think perhaps npm pack is what you are looking for
When you run it you get a tarball you can use when you run npm install in the project you want to test the package on.
I plan to do a video about this soon. Let me know if it helps