A solid reference for building TypeScript libraries the way modern tools like Zod, Vite, and tRPC do it. Covers the full stack from project setup through package.json exports, dual CJS/ESM bundling with tsdown or unbuild, API design patterns, and release workflows. The modular approach is smart: ten focused reference files you load based on what you're actually working on rather than dumping everything into context. If you're setting up a new library or fighting with module resolution and export maps, this gets you to working dual-format output fast. Assumes you want ESM-first with proper CJS compatibility, which is the right default in 2024.

skills.sh installs
2K
GitHub stars
723
last updated
Aug 21, 2026

Install

$ npx -y skills add onmax/nuxt-skills --skill ts-library --agent claude-code

Installs into .claude/skills of the current project.

Files

A solid reference for building TypeScript libraries the way modern tools like Zod, Vite, and tRPC do it. Covers the full stack from project setup through package.json exports, dual CJS/ESM bundling with tsdown or unbuild, API design patterns, and release workflows. The modular approach is smart: ten focused reference files you load based on what you're actually working on rather than dumping everything into context. If you're setting up a new library or fighting with module resolution and export maps, this gets you to working dual-format output fast. Assumes you want ESM-first with proper CJS compatibility, which is the right default in 2024.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/onmax/nuxt-skills
Categories
Frontend Development, Backend & APIs, Testing & QA, DevOps & CI/CD, Release Management, Design & UI/UX

More from onmax/nuxt-skills

All 21
1onmax avatarpnpmonmax/nuxt-skillsUse when managing Node.js dependencies with pnpm - install packages, configure monorepo workspaces, set up pnpm catalogs, resolve dependency conflicts with over1.9Kskills.sh installs
2facebook avatarextract-errorsfacebook/reactextract errors1.1Kskills.sh installs
3facebook avatartestfacebook/reacttest1.1Kskills.sh installs
4facebook avatarverifyfacebook/reactverify1.1Kskills.sh installs
5facebook avatarfeature-flagsfacebook/reactfeature flags1Kskills.sh installs
6vercel avatarauthoring-skillsvercel/next.jsauthoring skills1Kskills.sh installs