{"library":"fix-dts-default-cjs-exports","type":"library","category":null,"description":"This utility addresses a common issue in TypeScript declaration generation, specifically when dealing with default exports within CommonJS modules. It provides a programmatic API and a Rollup plugin to correctly transform `d.mts` files into CommonJS-compatible `d.ts` and `d.cts` files, ensuring interoperability. The current stable version is 1.0.1, with recent releases indicating an active maintenance cadence primarily focused on bug fixes and compatibility. Key differentiators include its direct integration via a Rollup plugin, making it suitable for build tools like `unbuild` (which leverages it internally since v3.5.0), and its specific focus on the nuanced problem of default exports in CJS TypeScript declarations where other bundlers or compilers might produce incorrect outputs. It provides a targeted solution for a specific TypeScript build problem, rather than being a general-purpose bundler.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","rollup","cjs","typescript","default exports"],"last_verified":"Wed May 27","install":[{"cmd":"npm install fix-dts-default-cjs-exports","imports":["import { fixDtsDefaultCjsExports } from 'fix-dts-default-cjs-exports'","import { FixDtsDefaultCjsExportsPlugin } from 'fix-dts-default-cjs-exports/rollup'","import type { PluginOptions } from 'fix-dts-default-cjs-exports/rollup'"]},{"cmd":"yarn add fix-dts-default-cjs-exports","imports":[]},{"cmd":"pnpm add fix-dts-default-cjs-exports","imports":[]}],"homepage":null,"github":"https://github.com/userquin/fix-dts-default-cjs-exports","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/fix-dts-default-cjs-exports","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/fix-dts-default-cjs-exports/compatibility"}}