ts-library

Installation
Summary

Complete reference guide for authoring TypeScript libraries and npm packages.

  • Covers project setup, package.json exports configuration, tsconfig optimization, and dual CJS/ESM build tooling with tsdown or unbuild
  • Includes API design patterns (builder, factory, plugin systems), advanced type inference techniques, and tree-shaking best practices
  • Provides vitest testing setup, release workflow configuration, and GitHub Actions CI/CD templates
  • Organized as modular reference files—load only what's relevant to your current task to minimize token usage
SKILL.md

TypeScript Library Development

Patterns for authoring high-quality TypeScript libraries, extracted from studying unocss, shiki, unplugin, vite, vitest, vueuse, zod, trpc, drizzle-orm, and more.

When to Use

  • Starting a new TypeScript library (single or monorepo)
  • Setting up package.json exports for dual CJS/ESM
  • Configuring tsconfig for library development
  • Choosing build tools (tsdown, unbuild)
  • Designing type-safe APIs (builder, factory, plugin patterns)
  • Writing advanced TypeScript types
  • Setting up vitest for library testing
  • Configuring release workflow and CI

For Nuxt module development: use nuxt-modules skill

Quick Reference

Related skills

More from onmax/nuxt-skills

Installs
1.3K
GitHub Stars
658
First Seen
Jan 19, 2026