70 Validation Rules
Exports, types, files, metadata, size. Everything publint + attw check, plus rules they miss. Auto-fix included.
See all rules →
One CLI to build, validate, and publish TypeScript packages. 70 rules. Auto-fix. Zero config.
validation rules
tools replaced
config required
command to ship
You're publishing a TypeScript library. Your "workflow" looks like this:
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 breaksHope is not a strategy.
Two hours later, someone opens an issue: "Types aren't working." Your stomach drops.
npx @tspub-dev/tspub check --fix # find problems, fix them
npx @tspub-dev/tspub publish patch # build → validate → version → shipThat's it. One tool. 70 rules. Auto-fix. Rollback on failure.
| tspub | publint | attw | tsup | np | changesets | |
|---|---|---|---|---|---|---|
| Validation rules | 70 | 40 | 12 | — | — | — |
| Auto-fix | ✓ | — | — | — | — | — |
| Build ESM/CJS | ✓ | — | — | ✓ | — | — |
| DTS bundling | ✓ | — | — | ✓ | — | — |
| Type checking | ✓ | — | ✓ | — | — | — |
| Prereq gates | ✓ | — | — | — | ✓ | — |
| Rollback | ✓ | — | — | — | ✓ | — |
| Changesets | ✓ | — | — | — | — | ✓ |
| Repo scanning | ✓ | — | — | — | — | — |
| Diagnostics | ✓ | — | — | — | — | — |
| Plugins | ✓ | — | — | ✓ | — | — |
| Zero config | ✓ | ✓ | ✓ | ✓ | — | — |
# No install needed
npx @tspub-dev/tspub checknpx @tspub-dev/tspub check --fixnpx @tspub-dev/tspub buildnpx @tspub-dev/tspub publish patch┌─────────────┐ ┌───────┐ ┌───────┐ ┌──────┐ ┌─────────┐
│ 5 Prereqs │ → │ Build │ → │ Check │ → │ Bump │ → │ Publish │
└─────────────┘ └───────┘ └───────┘ └──────┘ └─────────┘
│ │
↓ ↓
Stop early Rollback git
if not ready if npm failsThe 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.
npm install -D @tspub-dev/tspubpnpm add -D @tspub-dev/tspubyarn add -D @tspub-dev/tspubbun 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."