Skip to content

Commit

Permalink
Add "types" inside "exports" of package.json, fix ./helpers import typo
Browse files Browse the repository at this point in the history
  • Loading branch information
daniluk4000 committed Nov 5, 2023
1 parent f8f71c6 commit 015ca3c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@
"exports": {
".": {
"require": "./src/main/ua-parser.js",
"import": "./src/main/ua-parser.mjs"
"import": "./src/main/ua-parser.mjs",
"types": "./src/main/ua-parser.d.ts"
},
"./enums": {
"require": "./src/enums/ua-parser-enums.js",
Expand All @@ -185,8 +186,9 @@
"import": "./src/extensions/ua-parser-extensions.mjs"
},
"./helpers": {
"require": "./src/extensions/ua-parser-helpers.js",
"import": "./src/extensions/ua-parser-helpers.mjs"
"require": "./src/helpers/ua-parser-helpers.js",
"import": "./src/helpers/ua-parser-helpers.mjs",
"types": "./src/helpers/ua-parser-helpers.d.ts"
}
},
"files": [
Expand Down

0 comments on commit 015ca3c

Please sign in to comment.