A Rollup plugin that wraps dts-bundle-generator to produce a single, flattened .d.ts bundle from TypeScript declarations. Current version 1.4.0, released with MIT license. It aims to solve the long-standing difficulty of generating bundled TypeScript typings in Rollup builds with a zero-config approach, deriving defaults from Rollup input/output. Supports entry point configuration and compilation options. Compared to alternatives like rollup-plugin-dts, it focuses on simplicity and relies on dts-bundle-generator which is actively maintained. Ships TypeScript types.
npm install rollup-plugin-dts-bundle-generatorVerified import paths — ran on the pinned version, not inferred.
Configures Rollup plugin to generate a bundled .d.ts file with custom output path and compiler settings.
Upgrade to version 1.2.0+ or set outFile explicitly.
Rely on auto-derivation from Rollup input/output or specify outFile explicitly.
If using multiple outputs, set outFile explicitly to avoid unexpected file generation.
Set preserveModules: false and preserveEntrySignatures: 'strict' in Rollup config.
Use `import { generateDtsBundle } from 'rollup-plugin-dts-bundle-generator'`Pass compilation.preferredConfigPath in options, or ensure tsconfig.json exists in project root.
Create the output directory before running the build, or use a path that exists.
Specify entry in options or ensure Rollup config has valid input and output.