The npm package fix-dts-default-cjs-exports saw initial releases in February 2025 (versions 0.0.1 & 1.0.0) and a single release (1.0.1) in March 2025. Since April 2025, there have been no new releases of the package through August 2025.
fix-dts-default-cjs-exports automatically repairs TypeScript declaration files (.d.ts) mistakenly declaring module.exports as export default. This often occurs when migrating CommonJS modules to ES modules. The package analyzes .d.ts files and rewrites incorrect export default = module.exports declarations to a proper export = module.exports syntax, ensuring compatibility with TypeScript's module resolution. This prevents TypeScript compiler errors and improves interop between CommonJS and ES modules.
The npm package fix-dts-default-cjs-exports saw a surge in downloads starting in February 2025. Downloads steadily increased, peaking in August 2025 at over 3.6 million. September 2025, with incomplete data, shows around 1.5 million downloads, indicating a potential decrease from the previous month's peak.