Registry / devops / tiny-ts-package-bundler

tiny-ts-package-bundler

JSON →
library1.1.4jsnpmunverified

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-bundler
INSTALL
IMPORT
SIG · TINY-TS-PACKAGE-BU
T
tiny-ts-package-bundler
devopsjavascriptv1.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import tinyPkgBundler from 'tiny-ts-package-bundler'
const tinyPkgBundler = require('tiny-ts-package-bundler')
CLI tool — primarily used via command line or npm scripts. If imported programmatically, use ESM default import.

Configures package.json to run the bundler on build and prepublish, with platform and target options.

{ "scripts": { "build": "tiny-ts-package-bundler", "prepublishOnly": "tiny-ts-package-bundler" }, "tinyTsPkgBundler": { "platform": "node", "target": "node16" } } # Run build npm run build # Output: dist/ with index.js (CJS), index.mjs (ESM), index.d.ts
Debug
Known issues
gotchaConfiguration must be placed under 'tinyTsPkgBundler' key in package.json, not top-level or other names
fix
Use 'tinyTsPkgBundler' object with 'platform' and 'target' fields. See docs for supported values.
affects: >=1.0.0
gotchaCLI expects a src/index.ts entry point by default; custom entry not supported
fix
Ensure your source file is src/index.ts or migrate to tsup directly for custom entry points.
affects: >=1.0.0
deprecatedTarget 'es5' may not work with modern TypeScript features; use 'node16' or higher for Node projects
fix
Set target to 'node16', 'es2020', or higher depending on your runtime.
affects: >=1.0.0
gotchaPackage generates package.json but does not update existing fields; may overwrite manually set values
fix
Backup your package.json before running, or use the script only in prepublish with a clean state.
affects: >=1.0.0
breakingv1.0.0 introduced tsup as the underlying bundler, breaking compatibility with v0.x custom build scripts
fix
Update package.json configuration to use 'tinyTsPkgBundler' object and remove old build commands.
affects: >=1.0.0
Errors
Common errors & fixes
ERR_PNPM_NO_SCRIPT tiny-ts-package-bundler: command not found
Package not installed globally or in local node_modules
fix
Run 'pnpm add tiny-ts-package-bundler' or 'npm install tiny-ts-package-bundler' first.
Could not resolve 'src/index.ts'
Default entry point src/index.ts is missing or named differently
fix
Rename or create src/index.ts as the main entry file, or use tsup directly for custom paths.
Error: Unknown target 'es3'
Invalid target value passed via 'tinyTsPkgBundler.target'
fix
Use a valid target such as 'node16', 'es2020', 'es5', 'es2015', etc. See esbuild/tsup documentation.
Cannot find module 'tiny-ts-package-bundler'
Package not installed or incorrect import path
fix
Install the package locally: npm install tiny-ts-package-bundler --save-dev
Upgrade
Version history
1.1.4latest on npm
Audit
Dependencies
tsuprequiredCore bundler used for transpilation and bundling
Agent activity
6 hits · last 30 days
node
6
Resources
tiny-ts-package-bundler — npm install tiny-ts-package-bundler · libregistry