Skip to content

Commit a395bbf

Browse files
committed
fix: exports mapping with types and intellisense and package.json
1 parent 22dc754 commit a395bbf

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

package.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@
99
"url": "https://github.com/MatrixAI/js-logger.git"
1010
},
1111
"type": "module",
12-
"types": "./dist/index.d.ts",
1312
"exports": {
14-
".": "./dist/index.js",
15-
"./*.js": "./dist/*.js",
16-
"./handlers/*.js": "./dist/handlers/*.js"
13+
"./package.json": "./package.json",
14+
".": {
15+
"types": "./dist/index.d.ts",
16+
"import": "./dist/index.js"
17+
},
18+
"./*.js": {
19+
"types": "./dist/*.d.ts",
20+
"import": "./dist/*.js"
21+
},
22+
"./*": "./dist/*"
1723
},
1824
"imports": {
1925
"#*": "./dist/*"

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"allowSyntheticDefaultImports": true,
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,
15-
"moduleResolution": "node",
15+
"moduleResolution": "NodeNext",
1616
"module": "ESNext",
1717
"target": "ES2022",
1818
"baseUrl": "./src",

0 commit comments

Comments
 (0)