@tuller/lib
v0.0.33
Published
common used methods
Downloads
602
Readme
LibPackage: Creating an NPM Package with TypeScript and tsup
This README serves as a tutorial for creating an NPM package using TypeScript and tsup. We'll cover the setup of tsup.config.ts
, tsconfig.json
, and package.json
.
Prerequisites
- Node.js and npm installed on your system
- Basic knowledge of TypeScript and npm
Step 1: Initialize your project
Create a new directory for your project and navigate into it:
mkdir my-npm-package cd my-npm-package
Initialize a new npm project:
npm init -y
Step 2: Install dependencies
Install TypeScript, tsup, and other necessary dev dependencies: