{"name":"vite-plugin-dts","version":"4.5.3","keywords":["vite","vite-plugin","ts","dts","typescript","vue","tsc","vue-tsc","volar"],"author":{"name":"qmhc"},"license":"MIT","_id":"vite-plugin-dts@4.5.3","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":"9d9e64c12e21e9389efd9f999e034cd5864b0027","tarball":"http://registry-npm.ywwl.com/vite-plugin-dts/download/vite-plugin-dts-4.5.3.tgz","fileCount":9,"integrity":"sha512-P64VnD00dR+e8S26ESoFELqc17+w7pKkwlBpgXteOljFyT0zDwD8hH4zXp49M/kciy//7ZbVXIwQCekBJjfWzA==","signatures":[{"sig":"MEUCIBF5P/1DvT8hu7/tSDYGSLyTd+lk9ctRNzCzPW/3iw2PAiEAqRZHxqzcVJw3ab07wbja+KTA9sXCA/h9zllOiXYh9js=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":140585,"size":35211,"noattachment":false,"key":"/vite-plugin-dts/-/vite-plugin-dts-4.5.3.tgz"},"main":"dist/index.cjs","type":"module","_from":"file:vite-plugin-dts-4.5.3.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"dev":"unbuild --stub","lint":"eslint --ext .js,.jsx,.ts,.tsx \"{src,tests}/**\"","test":"vitest run","build":"tsx scripts/build.ts","release":"tsx scripts/release.ts","test:ts":"pnpm -C examples/ts build","prettier":"pretty-quick --staged && pnpm run lint","test:dev":"vitest","test:vue":"pnpm -C examples/vue build","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s --commit-path .","precommit":"lint-staged -c ./.husky/.lintstagedrc -q --allow-empty","publish:ci":"tsx scripts/publish.ts","test:react":"pnpm -C examples/react build","test:svelte":"pnpm -C examples/svelte build","_postinstall":"is-ci || husky install"},"_npmUser":{"name":"qmhc","email":"rkzhang9595@gmail.com"},"_resolved":"/tmp/c408c97ccd7e4b04ecbb4c29f26d0dbe/vite-plugin-dts-4.5.3.tgz","_integrity":"sha512-P64VnD00dR+e8S26ESoFELqc17+w7pKkwlBpgXteOljFyT0zDwD8hH4zXp49M/kciy//7ZbVXIwQCekBJjfWzA==","repository":{"url":"git+https://github.com/qmhc/vite-plugin-dts.git","type":"git"},"_npmVersion":"10.8.2","description":"<h1 align=\"center\">vite-plugin-dts</h1>","directories":{},"_nodeVersion":"18.20.7","dependencies":{"debug":"^4.4.0","kolorist":"^1.8.0","local-pkg":"^1.0.0","magic-string":"^0.30.17","compare-versions":"^6.1.1","@volar/typescript":"^2.4.11","@vue/language-core":"2.2.0","@rollup/pluginutils":"^5.1.4","@microsoft/api-extractor":"^7.50.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","vite":"^6.2.0","execa":"^9.5.2","husky":"^9.1.7","is-ci":"^4.1.0","pinst":"^3.0.0","eslint":"^8.57.0","rimraf":"^6.0.1","semver":"^7.7.1","vitest":"^3.0.7","prompts":"^2.4.2","unbuild":"^3.3.1","minimist":"^1.2.8","prettier":"^3.5.2","typescript":"5.7.3","@types/node":"^22.13.5","lint-staged":"^15.4.3","@types/debug":"^4.1.12","pretty-quick":"^4.0.0","@types/semver":"^7.5.8","@types/prompts":"^2.4.9","@commitlint/cli":"^19.7.1","@types/minimist":"^1.2.5","@vexip-ui/scripts":"^1.2.0","@vexip-ui/eslint-config":"^0.12.1","@vexip-ui/prettier-config":"^1.0.0","conventional-changelog-cli":"^5.0.0","@vexip-ui/commitlint-config":"^0.5.0","@vue/eslint-config-standard":"^8.0.1","@vue/eslint-config-typescript":"^13.0.0"},"peerDependencies":{"vite":"*","typescript":"*"},"peerDependenciesMeta":{"vite":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-dts_4.5.3_1740970276284_0.33277659278665306","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":1740970276492,"_cnpm_publish_time":1740970276492,"dist-tags":{"beta":"5.0.0-beta.6","dev":"4.2.3-dev.2","latest":"5.1.2"}}