Skip to content

Commit 738f4c9

Browse files
committed
chore(bundler): allow tsdown to generate types and files export paths
1 parent 5cb9784 commit 738f4c9

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

package.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,12 @@
1515
"url": "https://github.com/selemondev/vue3-signature-pad/issues"
1616
},
1717
"exports": {
18-
".": {
19-
"types": "./dist/index.d.ts",
20-
"import": "./dist/index.js",
21-
"require": "./dist/index.cjs"
22-
}
18+
".": "./dist/index.js",
19+
"./package.json": "./package.json"
2320
},
24-
"main": "./dist/index.cjs",
21+
"main": "./dist/index.js",
2522
"module": "./dist/index.js",
2623
"types": "./dist/index.d.ts",
27-
"typesVersions": {
28-
"*": {
29-
"*": [
30-
"./dist/*",
31-
"./*"
32-
]
33-
}
34-
},
3524
"files": [
3625
"dist"
3726
],

tsdown.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ export default defineConfig({
88
minify: false,
99
platform: 'neutral',
1010
plugins: [Vue({ isProduction: true })],
11+
exports: true,
1112
dts: { vue: true },
1213
})

0 commit comments

Comments
 (0)