Skip to content

Commit

Permalink
Add package exports (#25)
Browse files Browse the repository at this point in the history
This ensures the browser API is used for the `browser` condition, and
the Node.js API for everything else.
  • Loading branch information
remcohaszing authored Jul 2, 2024
1 parent 593af18 commit 386b679
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"./lib/node/main.js": "./lib/browser/main.js"
},
"typings": "./api",
"exports": {
".": {
"types": "./api.d.ts",
"browser": "./lib/browser/main.js",
"default": "./lib/node/main.js"
}
},
"author": "Microsoft Corporation",
"repository": {
"type": "git",
Expand Down

0 comments on commit 386b679

Please sign in to comment.