TsPackage is a TypeScript minifier and modular bundle optimizer that compiles ES6 external TypeScript modules into minified single-file bundles. Version 1.0.0-beta.4 supports TypeScript 2.x and offers identifier shortening, whitespace removal, and cache-optimized incremental builds. It differentiates by bundling dependencies at compilation time rather than relying on downstream build tools like AMD Optimizer. Currently a work in progress, it replaces TsProject. Typically low release cadence as beta.
npm install tspackageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of tspackage.build with a tsconfig path and callback.
Use TsProject until TsPackage reaches stable release.
Use TypeScript 2.x for compatibility.
Wrap in a Promise manually or use a callback-based flow.
import tspackage from 'tspackage'; then tspackage.build(...)
Run `npm install tspackage` and ensure import is './tspackage' if local.
Check that configPath is correct and tsconfig.json exists.
No dependency data recorded yet.