Skip to content

Commit

Permalink
fix: exports mapping with types and intellisense and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Aug 12, 2023
1 parent 22dc754 commit a395bbf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@
"url": "https://github.com/MatrixAI/js-logger.git"
},
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index.js",
"./*.js": "./dist/*.js",
"./handlers/*.js": "./dist/handlers/*.js"
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./*.js": {
"types": "./dist/*.d.ts",
"import": "./dist/*.js"
},
"./*": "./dist/*"
},
"imports": {
"#*": "./dist/*"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"isolatedModules": true,
"moduleResolution": "node",
"moduleResolution": "NodeNext",
"module": "ESNext",
"target": "ES2022",
"baseUrl": "./src",
Expand Down

0 comments on commit a395bbf

Please sign in to comment.