Overview
Discover the intricacies of packaging and publishing open-source npm packages in this comprehensive conference talk from Vuejs Amsterdam 2023. Delve into topics such as creating a math library, implementing type safety, understanding ESM vs CJS, exporting multiple formats, utilizing build tools like tsup, handling special files, and simplifying various aspects of library development. Learn about exporting raw files for private packages and explore numerous essential rules for successful library packaging. Gain valuable insights to enhance your skills in creating and distributing JavaScript libraries effectively.
Syllabus
Intro
Overview
A math library
Add type safety
ESM vs CJS
Export both ESM and CJS
Multiple entries
Build tools
Specialized build tool (tsup)
Handle special files
Simplify type safety
Simplify ESM and CJS
Export raw for private packages
Many little rules
publint.dev
Taught by
JSWORLD Conference