Awesome quality video. ✅ Perfect audio. ✅ Straight to the point. ✅ Showing best practices. Keep it up.
@weroro Жыл бұрын
5:14 There is a CLI for that "npx tsc --init" 15:30 Before publishing a new package, you should test it locally. Use the "npm pack" command to create a TGZ file and you can use it in the package.json file using the "npm install relative_path_to_package_file" command
@DarlenCodename9 ай бұрын
You can use "npm link" to link the package globally, then in a new folder you use "npm link package-name" and it'll be linked to you node_modules
@TheFearlessStudios Жыл бұрын
I really appreciate this video as I’m gonna be making a discord game package and this helped me understand things I didn’t understand before keep up the great work
@jasonko1202 Жыл бұрын
Best video I've watched on how to create npm package!!
@priyanshushh8 ай бұрын
Thank you so much dude today i published my first ever package, this video helped me a lot.
@PlatinumBuckGorilla5 ай бұрын
Everyting on point. Very good tutorial. Saved me a lot of time. Been fluffing around with webpack and it’s plug-ins especially the ts-loader the bloody things are so out of sync. Spent countless hours trying to find compatible versions between the two.
@ZeroCommentsZeroDocs7Bugs7 ай бұрын
From all the tutorials this was the one that got me to where I wanted to be! Thank you so much!
@hghlndr26 ай бұрын
Wow! What a good video!!! Best one for this subject, hands down.
@Cypekeh2 ай бұрын
Amazing bro. Subbed One thing tho, you often don't need to install packages globally, if you install them as a dev dependency you can use its binary inside that project via npx
@RabahTaib-mn4fs8 ай бұрын
Frist: (الحمد لله) Second: Thank you ♥
@TheBenhichem5 ай бұрын
nice, simple and straight forward
@v.demchenko5 ай бұрын
absolutely amazing video with great explanation every detail
@UnderCtrl5 ай бұрын
🙏
@BooksWeCanRead Жыл бұрын
That’s so cool! Thanks so much that’s awesome! 👌
@PRABHAKARNAYAK-s5v2 ай бұрын
Thank you for the clear explanation
@abdulsamadayoade94397 ай бұрын
thanks for making this, it fixed my problem
@XZivXL9 ай бұрын
Life saver! Thank you for that
@nayandey501011 ай бұрын
thanks to you, for my first npm package
@zenobiusztasak86049 ай бұрын
How instead of this: import {Button, someFunction} form "my-package" have these separated like: import {Button} from "my-package/components" import {someFunction} from "my-package" or "my-package/functions" Thanks
@mariolazzari7 ай бұрын
amazing video: I was seaarching for a tsdx alternative and, thanks to your awesome job, I found it!
@Perrynatufe910511 ай бұрын
Thanks so much This was really helpful for my SAAS
@UnderCtrl11 ай бұрын
Glad to have been helpful. Good luck on your SaaS! :)
@douglasemsantos8 ай бұрын
Excellent video! Thank you for that!
@zoeycvu9 ай бұрын
thank you for your best tutorial
@mrlectus4 ай бұрын
Why do I have to install types in some package and some I don't have to, but they still have types?
@m1dev Жыл бұрын
Great video! ❤🔥
@antonhogstrom4085 Жыл бұрын
Great quality tutorials! 👌
@WaveFlightSimulations3 ай бұрын
thanks for the video bro
@qudratullahkhan45185 ай бұрын
Very Informative video. I have a question, this package is for Node Js. But how can we create a Vanilla JavaScript library like moment.js?
@fereshteh20007 күн бұрын
Thanks a lot!
@yunwang12439 ай бұрын
Why is it for CommonJS? It is outdated
@hrushikeshvibhute46398 ай бұрын
Node js works on common js only
@goat-sama8 ай бұрын
Did a bot write this?
@zayne-sarutobi5 ай бұрын
True pre node16
@kasuutooheri Жыл бұрын
Podrias hacer un tutorial para embeds programados?):
@hidhayaths5 ай бұрын
Excellent! Can we do classes in ts with the same steps or do we need any other configs? Pls advise
@UnderCtrl5 ай бұрын
You can use the same config for classes
@0looom Жыл бұрын
keep going!!!!!!!!!!!!!!!!!!!!
@aboutreactnative448411 ай бұрын
Thanks for the tutorial I have made a npm package called log-glow
@devgauravjatt Жыл бұрын
Great video 💯❤❤❤🎉🎉🎉🎉🎉
@heruhailiuhuang53310 ай бұрын
how to build for diff env like and prod.
@maxpricefield758610 ай бұрын
question: do we need to configure for both cjs and esm if I just want to make typescript libraries meant for nodeJS only?
@UnderCtrl10 ай бұрын
Yes, it would be good practice to do so because some developers might use CommonJS with your library while others might use ESM. Configuring for both ensures that your library will be supported by both environments.
@rjwhite44247 ай бұрын
awesome video. How would you recommend testing the code before building and publishing?
@UnderCtrl7 ай бұрын
You can use "npm link" to install this package locally in another project and test it out there. I found this great tutorial you might find helpful: dev.to/one-beyond/different-approaches-to-testing-your-own-packages-locally-npm-link-4hoj
@gayathri-8-i6s9 ай бұрын
as i am using next js, i dont have main. then how to do it?
@deveshbajaj5827Ай бұрын
Means
@tech-nomade7 ай бұрын
bro this is gold. subsicribed
@anilsonix11 ай бұрын
Could also share how to build isomorphic packages and subpath exports 😊
@mayurghuge88466 ай бұрын
Thank you.
@jh_developer8 ай бұрын
package npm adduser notworking?
@abdulsamadayoade94397 ай бұрын
don't add package, that is his folder name used in the tutorial, just type "npm add user"
@webdevelopmentguide49104 ай бұрын
Thankful
@praweewongsa10 ай бұрын
good job
@ftntio Жыл бұрын
Cool....
@reybecar80338 ай бұрын
I’m so lost at the beginning
@kobbimensah5476 ай бұрын
Don't worry things gets so complicated when you don't know to start from
@PlatinumBuckGorilla5 ай бұрын
Fairly easy tutorial considering you do minimal compared to if you were using webpack or rollup
@ehm-wg8pd4 ай бұрын
if you are lost, chances are you are missing the prerequisite, developing npm library is advanced topic, you can learn javascript, typescript, module system, node, and get used with web development first (coz modern dev will give yoh insight to why npm library exist / can be helpful)