Tutorial: publishing ESM-based npm packages with TypeScript

1 · Axel Rauschmayer · Feb. 4, 2025, 2:11 p.m.
Summary
This blog post discusses a straightforward approach to publishing ESM-based npm packages using TypeScript, highlighting the improved support for ESM in TypeScript, Node.js, and browsers over the past two years. The author shares insights on a modern setup that allows developers to focus on new features without worrying about backward compatibility, specifically featuring TypeScript 4.7 and Node.js's ability to require ESM libraries from CommonJS modules.