Skip to content

Commit 805c736

Browse files
authored
Use exports field (#65)
1 parent c7d2803 commit 805c736

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

including-active-tab.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

including-active-tab.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,17 @@
2121
"funding": "https://github.com/sponsors/fregante",
2222
"license": "MIT",
2323
"author": "Federico Brigante <[email protected]> (https://fregante.com)",
24-
"module": "distribution/index.js",
24+
"type": "module",
25+
"exports": {
26+
".": {
27+
"types": "./distribution/index.d.ts",
28+
"default": "./distribution/index.js"
29+
},
30+
"./including-active-tab.js": {
31+
"types": "./distribution/including-active-tab.d.ts",
32+
"default": "./distribution/including-active-tab.js"
33+
}
34+
},
2535
"scripts": {
2636
"build": "tsc",
2737
"demo:build": "parcel build --no-cache",

0 commit comments

Comments
 (0)