How to Build a Production Ready npm Package (PART 2)
Use Snyk for free to find and fix security issues in your applications today! https://snyk.co/ugLYn
Need help building your production ready npm package? Look no further! We go through a step by step guide showing you how to build, test and publish your npm package. If you haven't watched Part 1 yet, go watch that first, and then come back to Part 2!
Check out Part 1 here → https://www.youtube.com/watch
Read more about how to build an npm package for ESM and CJS in our related blog: https://snyk.co/ugXDj
✍️ Resources ✍️
- Snyk Blog - Building an npm package: https://snyk.co/uhYgM
- Simple npm Package Repository: https://github.com/snyk-snippets/modern-npm-package
⏲️ Chapters ⏲️
00:00 - Intro
00:43 - Building npm package.json
01:30 - Quick PSA for ECMAScript Format
02:17 - Writing tsconfig.json file
04:05 - Building npm package.json
05:25 - Setting up and adding tests
07:17 - How to fix errors in your index.test code
07:56 - Altering code in tests
09:23 - Running and setting up your tests
10:34 - Adding code into a steady pipeline
13:50 - How to test using the package
16:46 - Outro
⚒️ About Snyk ⚒️
Snyk helps you find and fix vulnerabilities in your code, open-source dependencies, containers, infrastructure-as-code, software pipelines, IDEs, and more! Move fast, stay secure.
Learn more about Snyk: https://snyk.co/ugLYl
📱 Connect with Us 📱
🖥️ Website: https://snyk.co/ugLYl
🐦 X: http://twitter.com/snyksec
💼 LinkedIn: https://www.linkedin.com/company/snyk
💬 Discord: https://discord.gg/devsecops-community-918181751526948884
- ️ Subscribe: https://www.youtube.com/c/SnykSec
- 🔥 We're hiring! Check our open roles: https://snyk.co/ugLYp
🔗 Hashtags 🔗
#snyk #code #coding #cybersecurity #software #security #practice #development #developer #application #vulnerabilities #environments #deployment #published #npm #testing #build #guide #tutorial #productionready #productiontest #codetests #npmtests