Skip to content

Commit 8a840ea

Browse files
authored
Add exports field to package (#342)
1 parent ea8e839 commit 8a840ea

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

package.json

+29-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,42 @@
22
"name": "classnames",
33
"version": "2.4.0",
44
"description": "A simple utility for conditionally joining classNames together",
5-
"main": "index.js",
65
"author": "Jed Watson",
76
"license": "MIT",
87
"repository": {
98
"type": "git",
109
"url": "https://github.com/JedWatson/classnames.git"
1110
},
11+
"type": "commonjs",
12+
"main": "./index.js",
1213
"types": "./index.d.ts",
14+
"exports": {
15+
"./package.json": "./package.json",
16+
".": {
17+
"types": "./index.d.ts",
18+
"default": "./index.js"
19+
},
20+
"./index.js": {
21+
"types": "./index.d.ts",
22+
"default": "./index.js"
23+
},
24+
"./bind": {
25+
"types": "./bind.d.ts",
26+
"default": "./bind.js"
27+
},
28+
"./bind.js": {
29+
"types": "./bind.d.ts",
30+
"default": "./bind.js"
31+
},
32+
"./dedupe": {
33+
"types": "./dedupe.d.ts",
34+
"default": "./dedupe.js"
35+
},
36+
"./dedupe.js": {
37+
"types": "./dedupe.d.ts",
38+
"default": "./dedupe.js"
39+
}
40+
},
1341
"scripts": {
1442
"test": "node --test ./tests/*.mjs",
1543
"check-types": "tsd"

0 commit comments

Comments
 (0)