Skip to content

Commit 457f043

Browse files
authoredJul 20, 2022
fix(pkg): add types field for exports (#89)
1 parent 3dd6efd commit 457f043

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
"description": "A unified javascript build system",
55
"repository": "unjs/unbuild",
66
"license": "MIT",
7-
"exports": "./dist/index.mjs",
8-
"types": "dist/index.d.ts",
7+
"exports": {
8+
".": {
9+
"types": "./dist/index.d.ts",
10+
"import": "./dist/index.mjs"
11+
}
12+
},
13+
"types": "./dist/index.d.ts",
914
"bin": {
1015
"unbuild": "./dist/cli.mjs"
1116
},

0 commit comments

Comments
 (0)
Please sign in to comment.