Skip to content

Commit

Permalink
✨ feat(data/js/package.json): Make exports work.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Mar 9, 2021
1 parent 9fdb4a0 commit a9b3815
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data/js/.fixpackrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
"bugs",
"keywords",
"sideEffects",
"type",
"source",
"main",
"module",
"unpkg",
"umd:main",
"unpkg",
"exports",
"files",
"scripts",
Expand Down
10 changes: 9 additions & 1 deletion data/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@
"source": "src/index.js",
"main": "dist/index.js",
"module": "dist/index.module.js",
"umd:main": "dist/index.umd.js",
"unpkg": "dist/index.umd.js",
"exports": "./dist/index.modern.js",
"exports": {{
".": {{
"browser": "./dist/index.module.js",
"umd": "./dist/index.umd.js",
"require": "./dist/index.js",
"default": "./dist/index.modern.js"
}}
}},
"files": [
"dist"
],
Expand Down

0 comments on commit a9b3815

Please sign in to comment.