Skip to content

Commit

Permalink
fix: typescript import module declaration (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Danilqa authored Jan 21, 2024
1 parent 59ebbe3 commit 265df76
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@
"main": "../cjs/index.js",
"types": "./types/index.d.ts",
"exports": {
"import": "./esm/index.mjs",
"require": "./cjs/index.js"
"import": {
"types": "./types/index.d.ts",
"default": "./esm/index.mjs"
},
"require": {
"types": "./types/index.d.ts",
"default": "./cjs/index.js"
}
},
"keywords": [
"nodejs",
Expand All @@ -40,7 +46,7 @@
"type": "git",
"url": "https://github.com/Danilqa/node-file-router"
},
"homepage": "https://danilqa.github.io/node-file-router",
"homepage": "https://node-file-router.js.org",
"engines": {
"node": ">=14.8.0"
},
Expand Down

0 comments on commit 265df76

Please sign in to comment.