Skip to content

Commit 8a331ff

Browse files
authored
Merge pull request #67 from wsfe/chore/typings
chore: add package.json exports types field
2 parents b23aaa1 + fd72909 commit 8a331ff

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "@wsfe/vue-tree",
3-
"version": "3.0.6",
3+
"version": "3.0.7",
44
"types": "./types",
55
"description": "A vue tree component using virtual list.",
66
"main": "./dist/v3/vue-tree.umd.js",
77
"module": "./dist/v3/vue-tree.mjs",
88
"exports": {
99
".": {
10+
"types": "./types/index.d.ts",
1011
"import": "./dist/v3/vue-tree.mjs",
1112
"require": "./dist/v3/vue-tree.umd.js"
1213
},

Diff for: scripts/postinstall.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function switchVersion() {
1717
module: `${distDir}/vue-tree.mjs`,
1818
exports: {
1919
'.': {
20+
types: './types/index.d.ts',
2021
import: `${distDir}/vue-tree.mjs`,
2122
require: `${distDir}/vue-tree.umd.js`
2223
},

0 commit comments

Comments
 (0)