Example Repo: (https://github.com/bightg30098/dt-ui)

Init project with vite

Prepare dev environments (optional)

Create components

Build component library (with tsup) → recommended

Build component library (with vite)

Publish to npm

Usage