Skip to content

tspubStop shipping broken packages

One CLI to build, validate, and publish TypeScript packages. 70 rules. Auto-fix. Zero config.

tspub

70

validation rules

5

tools replaced

0

config required

1

command to ship


The Problem

You're publishing a TypeScript library. Your "workflow" looks like this:

bash
npm run build          # hope tsup config is right
npx publint            # hope exports are valid
npx attw --pack        # hope types resolve
npm version patch      # hope git is clean
npm publish            # hope nothing breaks

Hope is not a strategy.

Two hours later, someone opens an issue: "Types aren't working." Your stomach drops.


The Solution

bash
npx @tspub-dev/tspub check --fix    # find problems, fix them
npx @tspub-dev/tspub publish patch  # build → validate → version → ship

That's it. One tool. 70 rules. Auto-fix. Rollback on failure.


What tspub Replaces

tspubpublintattwtsupnpchangesets
Validation rules704012
Auto-fix
Build ESM/CJS
DTS bundling
Type checking
Prereq gates
Rollback
Changesets
Repo scanning
Diagnostics
Plugins
Zero config

Quick Start

bash
# No install needed
npx @tspub-dev/tspub check
bash
npx @tspub-dev/tspub check --fix
bash
npx @tspub-dev/tspub build
bash
npx @tspub-dev/tspub publish patch

The Publish Pipeline

┌─────────────┐   ┌───────┐   ┌───────┐   ┌──────┐   ┌─────────┐
│ 5 Prereqs   │ → │ Build │ → │ Check │ → │ Bump │ → │ Publish │
└─────────────┘   └───────┘   └───────┘   └──────┘   └─────────┘
      │                                                    │
      ↓                                                    ↓
  Stop early                                         Rollback git
  if not ready                                       if npm fails

The 5 gates: Clean git tree, correct branch, npm reachable, authenticated, check passes.

If npm fails: Git tag removed, version reverted, package.json restored. No half-broken releases.


Install

bash
npm install -D @tspub-dev/tspub
bash
pnpm add -D @tspub-dev/tspub
bash
yarn add -D @tspub-dev/tspub
bash
bun add -D @tspub-dev/tspub

"Finally, one tool that catches all the weird edge cases before my users do."

"The auto-fix saved me hours of debugging exports issues."

"Rollback on publish failure is a game changer. No more half-broken releases."


Ready to stop shipping broken packages?

Get Started →

Released under the MIT License.