{"id":19427779,"url":"https://github.com/stacksjs/bun-plugin-dtsx","last_synced_at":"2025-04-24T17:31:48.504Z","repository":{"id":184975292,"uuid":"672776806","full_name":"stacksjs/bun-plugin-dtsx","owner":"stacksjs","description":"Automatically generate your TypeScript .d.ts files, using Bun's bundler. Very fast.","archived":false,"fork":false,"pushed_at":"2025-04-17T09:47:06.000Z","size":2187,"stargazers_count":26,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T00:30:01.231Z","etag":null,"topics":["bun","bun-plugin","dts","generation","tsconfig","types"],"latest_commit_sha":null,"homepage":"https://dtsx.netlify.app/bun-plugin","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stacksjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["stacksjs","chrisbbreuer"],"open_collective":"stacksjs"}},"created_at":"2023-07-31T06:30:23.000Z","updated_at":"2025-04-15T22:13:01.000Z","dependencies_parsed_at":"2023-09-28T04:01:59.536Z","dependency_job_id":"361f564d-ee43-4a33-a336-d7b6da82b82d","html_url":"https://github.com/stacksjs/bun-plugin-dtsx","commit_stats":null,"previous_names":["stacksjs/bun-plugin-dts-auto"],"tags_count":71,"template":false,"template_full_name":"stacksjs/ts-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacksjs%2Fbun-plugin-dtsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacksjs%2Fbun-plugin-dtsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacksjs%2Fbun-plugin-dtsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacksjs%2Fbun-plugin-dtsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stacksjs","download_url":"https://codeload.github.com/stacksjs/bun-plugin-dtsx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343945,"owners_count":21415040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","bun-plugin","dts","generation","tsconfig","types"],"created_at":"2024-11-10T14:12:51.265Z","updated_at":"2025-04-24T17:31:48.492Z","avatar_url":"https://github.com/stacksjs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/stacksjs","https://github.com/sponsors/chrisbbreuer","https://opencollective.com/stacksjs"],"categories":[],"sub_categories":[],"readme":"![Social Card of Bun Plugin dtsx](https://github.com/stacksjs/bun-plugin-dtsx/blob/main/.github/art/cover.png)\n\n[![npm version][npm-version-src]][npm-version-href]\n[![GitHub Actions][github-actions-src]][github-actions-href]\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n\u003c!-- [![Codecov][codecov-src]][codecov-href] --\u003e\n\nThis Bun plugin generates dts files for your TypeScript projects.\n\n## Features\n\n- Automatic \u0026 fast dts generation\n- Powered by Bun \u0026 isolatedDeclarations\n- Monorepo support\n\n## Usage\n\n```bash\nbun install -d bun-plugin-dtsx\n```\n\nYou may now use the plugin:\n\n```ts\nimport dts from 'bun-plugin-dtsx'\n// if you prefer named imports\n// import { dts } from 'bun-plugin-dtsx'\n\nawait Bun.build({\n  root: './src',\n  entrypoints: [\n    'src/index.ts',\n  ],\n  outdir: './dist',\n  plugins: [\n    dts({\n      cwd: './', // optional, default: process.cwd()\n      root: './src', // optional, default: './src'\n      outdir: './dist/types', // optional, default: './dist'\n      keepComments: true, // optional, default: true\n      tsconfigPath: './tsconfig.json', // optional, default: './tsconfig.json'\n    }),\n  ],\n})\n\nconsole.log('Build complete ✅')\n```\n\n## API\n\nThe `dts` plugin accepts an options object with the following properties:\n\n- `cwd`: The current working directory _(optional, default: `process.cwd()`)_\n- `root`: The root directory of your TypeScript files _(optional, default: `'src'`)_\n- `outdir`: The output directory for generated declaration files _(optional, default: `'./dist'`)_\n- `entrypoints`: An array or glob of file paths, or a single file path, to process _(optional, if not specified, defaults to build entrypoints)_\n- `keepComments`: Whether to keep comments in the generated dts files _(optional, default: `true`)_\n- `tsconfigPath`: The path to your tsconfig file _(optional, default: `'./tsconfig.json'`)_\n\n## Testing\n\n```bash\nbun test\n```\n\n## Changelog\n\nPlease see our [releases](https://github.com/stacksjs/bun-plugin-dtsx/releases) page for more information on what has changed recently.\n\n## Contributing\n\nPlease review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.\n\n## Community\n\nFor help, discussion about best practices, or any other conversation that would benefit from being searchable:\n\n[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)\n\nFor casual chit-chat with others using this package:\n\n[Join the Stacks Discord Server](https://discord.gg/stacksjs)\n\n## Postcardware\n\n“Software that is free, but hopes for a postcard.” We love receiving postcards from around the world showing where `bun-plugin-dtsx` is being used! We showcase them on our website too.\n\nOur address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States 🌎\n\n## Sponsors\n\nWe would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.\n\n- [JetBrains](https://www.jetbrains.com/)\n- [The Solana Foundation](https://solana.com/)\n\n## Credits\n\nMany thanks to the following core technologies \u0026 people who have contributed to this package:\n\n- [Oxc](https://oxc.rs/)\n- [Chris Breuer](https://github.com/chrisbbreuer)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/bun-plugin-dtsx/tree/main/LICENSE.md) for more information.\n\nMade with 💙\n\n\u003c!-- Badges --\u003e\n[npm-version-src]: \u003chttps://img.shields.io/npm/v/bun-plugin-dtsx?style=flat-square\u003e\n[npm-version-href]: \u003chttps://npmjs.com/package/bun-plugin-dtsx\u003e\n[npm-downloads-src]: \u003chttps://img.shields.io/npm/dm/bun-plugin-dtsx?style=flat-square\u003e\n[npm-downloads-href]: \u003chttps://npmjs.com/package/bun-plugin-dtsx\u003e\n[github-actions-src]: \u003chttps://img.shields.io/github/actions/workflow/status/stacksjs/bun-plugin-dtsx/ci.yml?style=flat-square\u0026branch=main\u003e\n[github-actions-href]: \u003chttps://github.com/stacksjs/bun-plugin-dtsx/actions?query=workflow%3Aci\u003e\n\n\u003c!-- [codecov-src]: https://img.shields.io/codecov/c/gh/stacksjs/bun-plugin-dtsx/main?style=flat-square\n[codecov-href]: https://codecov.io/gh/stacksjs/bun-plugin-dtsx --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstacksjs%2Fbun-plugin-dtsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstacksjs%2Fbun-plugin-dtsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstacksjs%2Fbun-plugin-dtsx/lists"}