vite-plugin-dts is a Vite plugin designed to generate TypeScript declaration files (.d.ts) from your source code during the build process. It simplifies the process of creating type definitions for your libraries and applications, ensuring compatibility and improved developer experience for TypeScript users. By automating the generation of type definitions, it reduces manual effort and maintains type safety between your code and its consumers. This plugin integrates seamlessly with Vite's build pipeline, making it easy to incorporate declaration file generation into your existing workflow.
Vite-plugin-dts releases peaked in 2021 and 2022, with frequent updates, particularly in June 2021 and March & September 2022. Release frequency declined in 2024 and 2025, with several months having no releases. The latest versions, in the 4.x range, were published throughout 2024 and into May 2025, but no releases have occurred in the last three months.
Vite-plugin-dts npm package downloads show a strong upward trend from February 2024 to July 2025, peaking at nearly 6.6 million. August 2025 downloads are significantly lower (4.9 million), likely due to incomplete data for the month, but the overall growth trajectory remains positive.