{"id":13520489,"url":"https://github.com/alloc/vite-dts","last_synced_at":"2025-07-26T06:08:45.944Z","repository":{"id":41173324,"uuid":"375438616","full_name":"alloc/vite-dts","owner":"alloc","description":"Blazing fast plugin that generates .d.ts modules for libraries","archived":false,"fork":false,"pushed_at":"2022-09-27T17:34:33.000Z","size":17,"stargazers_count":88,"open_issues_count":9,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T03:07:01.568Z","etag":null,"topics":["typescript","vite","vite-plugin"],"latest_commit_sha":null,"homepage":"","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/alloc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-09T17:31:37.000Z","updated_at":"2024-09-26T08:16:54.000Z","dependencies_parsed_at":"2022-08-30T22:12:21.693Z","dependency_job_id":null,"html_url":"https://github.com/alloc/vite-dts","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/alloc/vite-dts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fvite-dts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fvite-dts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fvite-dts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fvite-dts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alloc","download_url":"https://codeload.github.com/alloc/vite-dts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fvite-dts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267127832,"owners_count":24040142,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["typescript","vite","vite-plugin"],"created_at":"2024-08-01T05:02:22.302Z","updated_at":"2025-07-26T06:08:45.887Z","avatar_url":"https://github.com/alloc.png","language":"TypeScript","funding_links":["https://paypal.me/alecdotbiz"],"categories":["TypeScript"],"sub_categories":[],"readme":"# vite-dts\n\n[![npm](https://img.shields.io/npm/v/vite-dts.svg)](https://www.npmjs.com/package/vite-dts)\n[![Code style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/alecdotbiz)\n\nGenerate a `.d.ts` module for both `.es` and `.cjs` entry points when using Vite's [lib mode](https://vitejs.dev/guide/build.html#library-mode). Instead of generating type definitions from your TypeScript source code (and bundling them), it assumes you will publish your source code, which means it can re-export from your TypeScript entry module. This improves performance drastically.\n\n\u0026nbsp;\n\n### FAQ\n\n- **Do I have to publish my `src` folder for this to work?**  \n  Yes. For libraries, you generally need to do that anyway, if you publish sourcemaps (which you should).\n\n- **Will this bundle my types?**  \n  No. It merely re-exports from your library's entry module.\n\n\u0026nbsp;\n\n### Usage\n\nSee the [`./demo/vite.config.js`](https://github.com/alloc/vite-dts/blob/master/demo/vite.config.js) file for more details.\n\n```ts\nimport dts from 'vite-dts'\n\nexport default {\n  plugins: [dts()],\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Fvite-dts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falloc%2Fvite-dts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Fvite-dts/lists"}