What problem does it solve?
Prevents fragile or breaking TypeScript library releases caused by ad-hoc build tooling, incorrect package exports, missing declaration bundling, and unverified consumer contracts so that published packages remain stable for both CJS and ESM consumers.
Core Features & Use Cases
- Package contract preservation: guidance for inspecting existing export maps, packing tarballs, and verifying consumer installs before changing builders.
- Rollup-first build patterns: stable dual CJS/ESM outputs, separate declaration emit, multiple public entry points, and exact output filenames for published packages.
- Type and tooling configuration: recommended tsconfig patterns (build vs local), declaration bundling strategies, and TypeScript multi-version testing approaches.
- Testing, CI, and release: vitest setup, package validation in CI, and reproducible release flows including tokenless OIDC publishing and pkg-pr-new previews.
Quick Start
Use the ts-library skill to set up a Rollup-based TypeScript library with dual CJS/ESM outputs, declaration bundling, verified package.json exports, and a CI pipeline that validates the packed tarball.