{"name":"vite-plugin-dts","version":"5.0.2","keywords":["vite","vite-plugin","ts","dts","typescript","vue","tsc","vue-tsc","volar"],"author":{"name":"qmhc"},"license":"MIT","_id":"vite-plugin-dts@5.0.2","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":"685a6f7209cea9fae9e4ec02935a3f43f69f4911","tarball":"http://registry-npm.ywwl.com/vite-plugin-dts/download/vite-plugin-dts-5.0.2.tgz","fileCount":8,"integrity":"sha512-lNeHS+dwGju6eRmNvZQt8Shwv9j3m98hbHse/lIbLq9q3yE2DcIOBBYQEVUF6tS0kOmv+VA9Z5FqmzFnGe4U8g==","signatures":[{"sig":"MEQCIBTKyCtz833MPMpqUsBlHZ3h4BAfo8Uq+6lsv9LlgVyHAiBO1wU0ak1qCqrZ+UitZLPBSV3hNsnoLiQm4sM6m2JE8A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/vite-plugin-dts@5.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5338,"size":2500,"noattachment":false,"key":"/vite-plugin-dts/-/vite-plugin-dts-5.0.2.tgz"},"main":"dist/index.cjs","type":"module","_from":"file:/tmp/vite-plugin-dts-5.0.2.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.2.tgz","_integrity":"sha512-lNeHS+dwGju6eRmNvZQt8Shwv9j3m98hbHse/lIbLq9q3yE2DcIOBBYQEVUF6tS0kOmv+VA9Z5FqmzFnGe4U8g==","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.2"},"_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.2_1780308648698_0.6557914520280244","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":1780308648836,"_cnpm_publish_time":1780308648836,"dist-tags":{"beta":"5.0.0-beta.6","dev":"4.2.3-dev.2","latest":"5.1.2"}}