Skip to content

Commit

Permalink
Add package.json to exports so that version information is available …
Browse files Browse the repository at this point in the history
…to other packages. Fixes foliojs#287
  • Loading branch information
fstrube committed Jul 20, 2022
1 parent bd386c3 commit 5c1643f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@
"module": "dist/browser-module.mjs",
"source": "src/index.js",
"exports": {
"node": {
"import": "./dist/module.mjs",
"require": "./dist/main.cjs"
".": {
"node": {
"import": "./dist/module.mjs",
"require": "./dist/main.cjs"
},
"import": "./dist/browser-module.mjs",
"require": "./dist/browser.cjs"
},
"import": "./dist/browser-module.mjs",
"require": "./dist/browser.cjs"
"./package.json": "./package.json"
},
"targets": {
"main": {
Expand Down

0 comments on commit 5c1643f

Please sign in to comment.