{"library":"ts-dual-module","type":"library","category":null,"description":"ts-dual-module is a command-line tool designed to simplify the creation of dual-module (ESM + CommonJS) packages using TypeScript. It targets projects that define `\"type\": \"module\"` in their `package.json` and automatically builds both module formats from TypeScript sources, typically located in a `./src` directory and outputting to `./dist`. The tool handles the complexities of `package.json` `exports` and `typesVersions` fields to ensure correct module resolution and type declarations for both environments, specifically addressing CommonJS subpath export issues where TypeScript's default `moduleResolution` might fall short. The current stable version is 0.6.3, indicating it's actively maintained but still in a pre-1.0 development phase, which implies a focus on adding features and refining functionality, potentially with breaking changes between minor versions. Its key differentiator is the automation of dual-module bundling and `package.json` configuration, saving developers from complex manual setup or reliance on multiple build steps with different TypeScript configurations.","language":"javascript","status":"active","version":"0.6.3","tags":["javascript","typescript","build","exports","tsc","esm","cjs","dual-module"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ts-dual-module","imports":["npx tsmod build","npx tsmod init","npx tsmod export <subpath> <target_file>"]},{"cmd":"yarn add ts-dual-module","imports":[]},{"cmd":"pnpm add ts-dual-module","imports":[]}],"homepage":null,"github":"https://github.com/bstefanescu/ts-dual-module","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-dual-module","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/ts-dual-module/compatibility"}}