Bundling a TypeScript library for Node with Rollup.JS
Packaging a NodeJS library with DTS type information and sourcemaps
When we began building the Lockstep SDK for TypeScript in 2021, my goal was to package a single library that worked for both TypeScript and JavaScript projects. I found tons of documentation online, but much of the information was out of date, led me to deprecated packages, or just plain didn’t work.
To help the situation, I’ll write down exactly how I could build a working TypeScript and JavaScript package for my SDK for NodeJS. I won’t document…