{"name":"vite-plugin-dts","version":"5.0.3","keywords":["vite","vite-plugin","ts","dts","typescript","vue","tsc","vue-tsc","volar"],"author":{"name":"qmhc"},"license":"MIT","_id":"vite-plugin-dts@5.0.3","maintainers":[{"name":"qmhc","email":"rkzhang9595@gmail.com"}],"homepage":"https://github.com/qmhc/unplugin-dts#readme","bugs":{"url":"https://github.com/qmhc/unplugin-dts/issues"},"dist":{"shasum":"c4ca204d3bdd5c8d9d21420b4ff013c64efb9f0b","tarball":"http://registry-npm.ywwl.com/vite-plugin-dts/download/vite-plugin-dts-5.0.3.tgz","fileCount":8,"integrity":"sha512-gIth6NdCEHWPiiRMCK3N6C8WjvdsrtEQrmsiG8h6Ov+lFP+b07Y+wcs9H0H7n146l0PDTYK4cQN1vgeG1pMdRQ==","signatures":[{"sig":"MEQCIFENqF80VSjPwK8kfWPOfI3CgKi/bzTToTyjG75ixhNvAiASPY1bYbM7R5OsiJBFNff5mZfK6VwDuVnKy4RsV6IKSw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vite-plugin-dts@5.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5338,"size":2500,"noattachment":false,"key":"/vite-plugin-dts/-/vite-plugin-dts-5.0.3.tgz"},"main":"dist/index.cjs","type":"module","_from":"file:/tmp/vite-plugin-dts-5.0.3.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"default":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"scripts":{"build":"tsx scripts/build.ts","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s --commit-path ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2f809dbb-3dda-4588-91e6-927104dce026"}},"_resolved":"/tmp/vite-plugin-dts-5.0.3.tgz","_integrity":"sha512-gIth6NdCEHWPiiRMCK3N6C8WjvdsrtEQrmsiG8h6Ov+lFP+b07Y+wcs9H0H7n146l0PDTYK4cQN1vgeG1pMdRQ==","repository":{"url":"git+https://github.com/qmhc/unplugin-dts.git","type":"git","directory":"packages/vite-plugin-dts"},"_npmVersion":"11.13.0","description":"<h1 align=\"center\">vite-plugin-dts</h1>","directories":{},"_nodeVersion":"24.16.0","dependencies":{"unplugin-dts":"1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"@microsoft/api-extractor":"^7.57.0"},"peerDependencies":{"vite":">=3","rollup":">=3","@microsoft/api-extractor":">=7"},"peerDependenciesMeta":{"vite":{"optional":true},"rollup":{"optional":true},"@microsoft/api-extractor":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-dts_5.0.3_1782288950176_0.49343635736547253","host":"s3://npm-registry-packages-npm-production"},"readme":"<h1 align=\"center\">vite-plugin-dts</h1>\n\n<p align=\"center\">\n(Do not recommend anymore, please use <code>unplugin-dts</code> instead)\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/vite-plugin-dts\">\n    <img src=\"https://img.shields.io/npm/v/vite-plugin-dts?color=orange&label=\" alt=\"version\" />\n  </a>\n  <a href=\"https://github.com/qmhc/vite-plugin-dts/blob/main/LICENSE\">\n    <img src=\"https://img.shields.io/npm/l/vite-plugin-dts\" alt=\"license\" />\n  </a>\n</p>\n\n## Install\n\n```sh\npnpm i -D vite-plugin-dts\n```\n\n## Usage\n\nIn `vite.config.ts`:\n\n```ts\nimport { resolve } from 'path'\nimport { defineConfig } from 'vite'\nimport dts from 'vite-plugin-dts'\n\nexport default defineConfig({\n  build: {\n    lib: {\n      entry: resolve(__dirname, 'src/index.ts'),\n      name: 'MyLib',\n      formats: ['es'],\n      fileName: 'my-lib',\n    },\n  },\n  plugins: [dts()],\n})\n```\n\nBy default, the generated declaration files are following the source structure.\n\nFortunately, with the help of [API Extractor](https://api-extractor.com/), the plugin can bundle all types into a single file. You just need to install `@microsoft/api-extractor` and set `bundleTypes: true`:\n\n```ts\nexport default defineConfig({\n  plugins: [dts({ bundleTypes: true })],\n})\n```\n\nIf you start with official Vite template, you should specify the `tsconfigPath`:\n\n```ts\nexport default defineConfig({\n  plugins: [dts({ tsconfigPath: './tsconfig.app.json' })],\n})\n```\n\n## Documentation\n\nFor full documentation, please refer to [unplugin-dts](../../docs/en/usage.md).\n\n## Example\n\nA real project using this plugin: [Vexip UI](https://github.com/vexip-ui/vexip-ui).\n\n## License\n\nMIT License.\n","publish_time":1782288950406,"_cnpm_publish_time":1782288950406,"dist-tags":{"beta":"5.0.0-beta.6","dev":"4.2.3-dev.2","latest":"5.1.2"}}