A Rollup plugin that bundles all generated .d.ts files into a single declaration file using dts-bundle under the hood. Version 1.0.0 is the latest stable release; the project appears to be maintained sporadically. It integrates seamlessly with Rollup's build hooks (default writeBundle) and provides options like file cleanup and verbosity. Compared to alternatives like rollup-plugin-dts or @rollup/plugin-dts, this plugin offers less configuration overhead but relies on the older dts-bundle library.
npm install rollup-plugin-dts-bundleVerified import paths — ran on the pinned version, not inferred.
Rollup config with typescript2 plugin and dts-bundle plugin to bundle .d.ts files into one.
Ensure your .d.ts files are generated correctly; use the removeSource option to avoid duplicate declarations.
Set hook to 'buildEnd' or 'generateBundle' based on your Rollup version and workflow.
Consider using rollup-plugin-dts or @microsoft/api-extractor for more robust declaration bundling.
Run 'npm install dts-bundle --save-dev' or 'yarn add dts-bundle -D'
Use 'import dtsBundle from 'rollup-plugin-dts-bundle'' in your config
Provide a bundle object with at least 'name' and 'main' properties