Skip to content

Commit a6c21d5

Browse files
authored
Ensure types are declared first in exports field (#996)
1 parent df33f22 commit a6c21d5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/four-humans-repair.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"dom-accessibility-api": patch
3+
---
4+
5+
Ensure types are declared first in `exports` field

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"module": "dist/index.mjs",
77
"type": "commonjs",
88
"exports": {
9+
"types": "./dist/index.d.ts",
910
"import": "./dist/index.mjs",
10-
"require": "./dist/index.js",
11-
"types": "./dist/index.d.ts"
11+
"require": "./dist/index.js"
1212
},
1313
"license": "MIT",
1414
"repository": {

0 commit comments

Comments
 (0)