Рет қаралды 21,553
How to make your own NPM package (Step-by-Step) 📦
🧠 Resources
tsconfig.json: pastebin.com/NT2Z7Kas
tsup.config.ts: pastebin.com/m7bGKx0d
🌐 Important links
Discord: ctrl.lol/discord
Github: github.com/notunderctrl
Patreon: / underctrl
Buy me a coffee (one-time donation): buymeacoffee.com/underctrl
🕐 Timestamps
00:00 - Introduction
00:32 - Setting up npm account
00:49 - Authenticating terminal with npm
01:28 - Setting up npm project
04:29 - Installing dependencies
05:11 - Configuring TypeScript
06:14 - Configuring TSUP
07:06 - Configuring scripts
08:04 - Setting up project structure
11:34 - Transpiling TypeScript code
12:00 - Ignoring files for GitHub and npm
13:40 - Creating README.md
15:16 - Pushing code to npm
16:32 - Conclusion