Skip to content

Commit

Permalink
fix: prefer exports over main
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 4, 2023
1 parent 3cb3d59 commit bab451c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@
"homepage": "https://microlink.io/mql",
"version": "0.10.38",
"types": "index.d.ts",
"main": "src/node.js",
"browser": "src/lightweight.js",
"umd:main": "dist/mql.js",
"unpkg": "dist/mql.js",
"exports": {
".": {
"import": "./dist/mql.js",
"require": "./src/node.js"
},
"./lightweight": {
"import": "./dist/mql.js",
"require": "./src/lightweight.js"
}
},
"author": {
"email": "josefrancisco.verdu@gmail.com",
"name": "Kiko Beats",
Expand Down

0 comments on commit bab451c

Please sign in to comment.