{"name":"vite-plugin-dts","version":"5.0.0-beta.0","keywords":["vite","vite-plugin","ts","dts","typescript","vue","tsc","vue-tsc","volar"],"author":{"name":"qmhc"},"license":"MIT","_id":"vite-plugin-dts@5.0.0-beta.0","maintainers":[{"name":"qmhc","email":"rkzhang9595@gmail.com"}],"homepage":"https://github.com/qmhc/vite-plugin-dts#readme","bugs":{"url":"https://github.com/qmhc/vite-plugin-dts/issues"},"dist":{"shasum":"ba193ce986f187837189df89c920102e0c361d03","tarball":"http://registry-npm.ywwl.com/vite-plugin-dts/download/vite-plugin-dts-5.0.0-beta.0.tgz","fileCount":8,"integrity":"sha512-rAXoPLTV8v57Ez2siR0/SG7Wz0dPByud2w0bHH6X4S/79OFvMJ8HjikV/qBMq4gRW4BsGjKtpgObrXdtNwVVPQ==","signatures":[{"sig":"MEUCIQCG3Y67zA17iLNn8BeWfLFHYZ0Y6Pzwa0AntP9rCM6hewIgZdXOIuhbTXsbk8sxjL5nabBPyjEUHNU3b4+w9A5vSN0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5096,"size":2439,"noattachment":false,"key":"/vite-plugin-dts/-/vite-plugin-dts-5.0.0-beta.0.tgz"},"main":"dist/index.cjs","type":"module","_from":"file:vite-plugin-dts-5.0.0-beta.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./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":"qmhc","email":"rkzhang9595@gmail.com"},"_resolved":"/tmp/40f9e732a5eb1c840b8ed8d1f4fa44ea/vite-plugin-dts-5.0.0-beta.0.tgz","_integrity":"sha512-rAXoPLTV8v57Ez2siR0/SG7Wz0dPByud2w0bHH6X4S/79OFvMJ8HjikV/qBMq4gRW4BsGjKtpgObrXdtNwVVPQ==","repository":{"url":"git+https://github.com/qmhc/vite-plugin-dts.git","type":"git","directory":"packages/vite-plugin-dts"},"_npmVersion":"10.8.2","description":"<h1 align=\"center\">vite-plugin-dts</h1>","directories":{},"_nodeVersion":"18.20.8","dependencies":{"unplugin-dts":"1.0.0-beta.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@microsoft/api-extractor":"^7.52.5"},"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.0-beta.0_1747586286857_0.5335741804860898","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":1747586287062,"_cnpm_publish_time":1747586287062,"dist-tags":{"beta":"5.0.0-beta.6","dev":"4.2.3-dev.2","latest":"5.1.2"}}