Skip to content

Commit

Permalink
feat(core, frameworks-express): Add default exports to package.json f…
Browse files Browse the repository at this point in the history
…or better module support
  • Loading branch information
roonie007 committed Jun 21, 2024
1 parent bc4a251 commit b1a8102
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
15 changes: 10 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,31 @@
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.js"
"import": "./index.js",
"default": "./index.js"
},
"./adapters": {
"types": "./adapters.d.ts",
"import": "./adapters.js"
"import": "./adapters.js",
"default": "./adapters.js"
},
"./errors": {
"types": "./errors.d.ts",
"import": "./errors.js"
"import": "./errors.js",
"default": "./errors.js"
},
"./jwt": {
"types": "./jwt.d.ts",
"import": "./jwt.js"
"import": "./jwt.js",
"default": "./jwt.js"
},
"./providers": {
"types": "./providers/index.d.ts"
},
"./providers/*": {
"types": "./providers/*.d.ts",
"import": "./providers/*.js"
"import": "./providers/*.js",
"default": "./providers/*.js"
},
"./types": {
"types": "./types.d.ts"
Expand Down
6 changes: 4 additions & 2 deletions packages/frameworks-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.js"
"import": "./index.js",
"default": "./index.js"
},
"./providers": {
"types": "./providers/index.d.ts"
Expand All @@ -23,7 +24,8 @@
},
"./providers/*": {
"types": "./providers/*.d.ts",
"import": "./providers/*.js"
"import": "./providers/*.js",
"default": "./providers/*.js"
},
"./package.json": "./package.json"
},
Expand Down

0 comments on commit b1a8102

Please sign in to comment.