Tiny-ts-package-bundler v1.1.4 is a lightweight CLI tool for building TypeScript packages into CommonJS and ES modules, generating global declaration files (.d.ts), and creating a package.json for npm publishing. Powered by tsup, it supports configurable platform (node/browser) and target (e.g., ES5, node16) options via the package.json 'tinyTsPkgBundler' field. Released on npm with low update frequency, it differentiates itself by bundling all common release steps into one command, but offers limited customization compared to tsup directly.
npm install tiny-ts-package-bundlerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures package.json to run the bundler on build and prepublish, with platform and target options.
Use 'tinyTsPkgBundler' object with 'platform' and 'target' fields. See docs for supported values.
Ensure your source file is src/index.ts or migrate to tsup directly for custom entry points.
Set target to 'node16', 'es2020', or higher depending on your runtime.
Backup your package.json before running, or use the script only in prepublish with a clean state.
Update package.json configuration to use 'tinyTsPkgBundler' object and remove old build commands.
Run 'pnpm add tiny-ts-package-bundler' or 'npm install tiny-ts-package-bundler' first.
Rename or create src/index.ts as the main entry file, or use tsup directly for custom paths.
Use a valid target such as 'node16', 'es2020', 'es5', 'es2015', etc. See esbuild/tsup documentation.
Install the package locally: npm install tiny-ts-package-bundler --save-dev