Skip to content

Commit 1c325b0

Browse files
authored
feat: add exports field in package.json (#88)
1 parent b6a3320 commit 1c325b0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
"main": "lib/cjs/index.js",
55
"types": "lib/cjs/index.d.ts",
66
"module": "lib/esm/index.js",
7+
"exports": {
8+
".": {
9+
"types": "./esm/index.d.ts",
10+
"import": "./esm/index.js",
11+
"require": "./cjs/index.js"
12+
},
13+
"./*": {
14+
"types": "./esm/*.d.ts",
15+
"import": "./esm/*.js",
16+
"require": "./cjs/*.js"
17+
}
18+
},
719
"repository": {
820
"type": "git",
921
"url": "git+https://github.com/jquense/react-common-hooks.git"

0 commit comments

Comments
 (0)