Too Long; Didn't Read
I recently decided to publish <a href="https://www.npmjs.com/package/unstated-viewer" target="_blank">an NPM module</a>. I wrote it in <a href="https://www.typescriptlang.org/" target="_blank">TypeScript</a> and went with <a href="https://rollupjs.org" target="_blank">Rollup</a> for bundling. It was my first time publishing a module and my first experience with Rollup, so I’d like to write a tutorial on how to do it, both as a reference for myself and for anyone who may find this useful. Let’s get started!