vite-plugin-dts 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +13 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -34,10 +34,10 @@ export default defineConfig({
34
34
  entry: resolve(__dirname, 'src/index.ts'),
35
35
  name: 'MyLib',
36
36
  formats: ['es'],
37
- fileName: 'my-lib'
38
- }
37
+ fileName: 'my-lib',
38
+ },
39
39
  },
40
- plugins: [dts()]
40
+ plugins: [dts()],
41
41
  })
42
42
  ```
43
43
 
@@ -46,19 +46,23 @@ By default, the generated declaration files are following the source structure.
46
46
  Fortunately, 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`:
47
47
 
48
48
  ```ts
49
- {
50
- plugins: [dts({ bundleTypes: true })]
51
- }
49
+ export default defineConfig({
50
+ plugins: [dts({ bundleTypes: true })],
51
+ })
52
52
  ```
53
53
 
54
54
  If you start with official Vite template, you should specify the `tsconfigPath`:
55
55
 
56
56
  ```ts
57
- {
58
- plugins: [dts({ tsconfigPath: './tsconfig.app.json' })]
59
- }
57
+ export default defineConfig({
58
+ plugins: [dts({ tsconfigPath: './tsconfig.app.json' })],
59
+ })
60
60
  ```
61
61
 
62
+ ## Documentation
63
+
64
+ For full documentation, please refer to [unplugin-dts](../../docs/en/usage.md).
65
+
62
66
  ## Example
63
67
 
64
68
  A real project using this plugin: [Vexip UI](https://github.com/vexip-ui/vexip-ui).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-dts",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "qmhc",
@@ -43,7 +43,7 @@
43
43
  "url": "https://github.com/qmhc/unplugin-dts/issues"
44
44
  },
45
45
  "dependencies": {
46
- "unplugin-dts": "1.0.0"
46
+ "unplugin-dts": "1.0.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@microsoft/api-extractor": "^7.57.0"