Build and publish TypeScript packages
ts-libraryskillsetup L2★15
sampleXbro/agentsmesh ↗What it does
Package and publish TypeScript library to npm with types and docs
Best for
When releasing TypeScript utility libraries to npm with strong type guarantees.
Inputs
- · source code
- · package.json
- · tsconfig.json
Outputs
- · dist/ compiled JS
- · .d.ts types
- · npm published package
Requires
- · tsc
- · npm CLI
- · git
Preconditions
- · npm account configured
- · semver version ready
- · tests pass
Failure modes
- · types generation fails
- · npm publish auth error
- · dist directory stale
Trust signals
- · dual CJS/ESM output pattern
- · type declaration bundling verified