Published in


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…




Everything connected with Tech & Code. Follow to join our 900K+ monthly readers

Recommended from Medium

Help your users share their love for your app with React Native

10 things you should know about React

Navigating and Waiting

JavaScript and its Industry use-case

Add a Real-Time Database with Your React Native Chat App with Firestore

React and TypeScript: Basic Form Event Types

Create 3D Text Meshes in Three.js with React-Three-Fiber

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ted Spence

Ted Spence

Software development management, focusing on analytics and effective programming techniques.

More from Medium

Publish Typescript Package in NPM

JS/TS — add and remove eventlisteners properly without loosing the “this” context

How to Create Global Variables in TypeScript with Node.js

A developer solving a problem

A Quick Look at the Node.js 16 Features