{"library":"rollup-plugin-dts-bundle","title":"rollup-plugin-dts-bundle","description":"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.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-dts-bundle"],"cli":null},"imports":["import dtsBundle from 'rollup-plugin-dts-bundle'","import type { Plugin } from 'rollup'","interface DtsBundleOptions { bundle: {...}; deleteOnComplete?: string[]; verbose?: boolean; hook?: string; }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport typescript from 'rollup-plugin-typescript2';\nimport dtsBundle from 'rollup-plugin-dts-bundle';\n\nexport default {\n  input: 'src/index.ts',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'esm'\n  },\n  plugins: [\n    typescript({ tsconfig: './tsconfig.json' }),\n    dtsBundle({\n      bundle: {\n        name: 'my-library',\n        main: 'dist/index.d.ts',\n        out: 'bundle.d.ts',\n        removeSource: true\n      },\n      deleteOnComplete: ['dist/**/*.d.ts', '!dist/bundle.d.ts'],\n      verbose: true\n    })\n  ]\n};","lang":"javascript","description":"Rollup config with typescript2 plugin and dts-bundle plugin to bundle .d.ts files into one.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}