Skip to content

Commit

Permalink
change how package.json specifies types file (#404)
Browse files Browse the repository at this point in the history
* change how package.json specifies types file

* reordered exports so default is final entry

* Minor tweaks

---------

Co-authored-by: George Stagg <george.stagg@posit.co>
  • Loading branch information
derrickstaten and georgestagg committed Apr 25, 2024
1 parent d480931 commit 4104844
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/package.json
Expand Up @@ -38,19 +38,17 @@
"dist"
],
"main": "dist/webr.mjs",
"types": "webr-main.d.ts",
"types": "dist/webR/webr-main.d.ts",
"exports": {
".": {
"types": "./dist/webR/webr-main.d.ts",
"node": "./dist/webr.cjs",
"default": "./dist/webr.mjs"
},
"./chan/serviceworker": "./dist/webr-serviceworker.mjs"
},
"typesVersions": {
"*": {
"*": [
"dist/webR/*"
]
"./chan/serviceworker": {
"types": "./dist/webR/chan/serviceworker.d.ts",
"browser": "./dist/webr-serviceworker.js",
"default": "./dist/webr-serviceworker.mjs"
}
},
"engines": {
Expand Down

0 comments on commit 4104844

Please sign in to comment.