Skip to content

Commit

Permalink
messing with exports again
Browse files Browse the repository at this point in the history
  • Loading branch information
kwhitley committed Jun 21, 2023
1 parent 08a5768 commit b7d4ca7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"main": "./index.js",
"module": "./index.mjs",
"types": "./index.d.ts",
"exports": {
".": {
"import": "./index.mjs",
"require": "./index.js",
"types": "./index.d.ts"
}
},
"keywords": [
"api",
"router",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default async () => {
input: file.path,
output: [
{
format: 'es',
format: 'esm',
file: file.esm,
sourcemap: false,
},
Expand Down

0 comments on commit b7d4ca7

Please sign in to comment.