CodeX
Published in

CodeX

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

React vs React Native

Building an Electron app from scratch (Part 3)

SECURING YOUR API’S USING NODE.JS , MONGODB AND JWT

Creating CRUD APIs with Node.js and Sequelize CLI

Typescript vs JavaScript: Understand the Top Difference in Detail — Echo IT

Subtle difference between map and pluck RxJS operators that you should know

What you need to know about React

Primitive vs Non-Primitive DataType

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

Build and Package an NPM Component with esbuild, React and TypeScript

ESBuild, React and Typescript

Migrating large codebase to TypeScript. Do it right from the beginning.

How to Generate a TypeScript API Reference: Building an NPM Package with TypeScript

Enforcing Node.js, npm, and Yarn Versions