typescript-library - TypeScript Library Development
Use when developing TypeScript npm packages including tsconfig, package.json exports, dual CJS/ESM builds, and publishing.
Tags
Updated: 2026-09-11Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Configure package.json exports
- Configure tsconfig compiler options
- Build dual CJS and ESM packages
- Inspect build tarball using npm pack
- Publish packages to npm registry
Inputs
- TypeScript source files
- package.json configuration
- tsconfig.json configuration
Outputs
- Compiled distribution files in dist
- npm package tarball
- Published npm package
Requirements
- Node.js runtime
- npm CLI tool
- TypeScript compiler or bundler
