Extends the TypeScript compiler (tsc) with a configurable file copy step, allowing you to copy non-TypeScript assets (CSS, JSON, etc.) from source to output directories after a successful tsc build. Current stable version is 3.1.0. It operates in two modes: TSC mode (runs tsc with given arguments and then copies files) or Copy-only mode (only copies files based on tsbconfig.json). Key differentiator: it automatically follows TypeScript project references, looking for tsbconfig.json next to each referenced tsconfig.json. Requires Node >=14.16 and a peer dependency on typescript itself.
npm install typescript-buildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installation, configuration (tsbconfig.json), and build command to copy .css files during TypeScript compilation.
Migrate to tsbconfig.json and upgrade Node to >=10 (v3 requires >=14.16).
Upgrade Node to >=14.16.
Always include --build to trigger file copying.
Set skipClean: true in tsbconfig.json to prevent deletion of output directories.
Rename .tsbconfig to tsbconfig.json and update content.
Run 'npm install --save-dev typescript' (or add it to peerDependencies).
Use 'tsb --build' for building, or run 'tsc --watch' directly for watch mode (copy not supported).
Create tsbconfig.json at the same directory where you run tsb.