Skip to content

Commit

Permalink
fix: use default submodules export in package.json (#8330)
Browse files Browse the repository at this point in the history
Use `default` submodules export in `package.json` to ensure compatibility, as specified in https://nodejs.org/api/packages.html#conditional-exports
  • Loading branch information
gvillenave authored Aug 16, 2023
1 parent 20c3fe3 commit 09c2a89
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/next-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,34 +29,34 @@
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.js"
"default": "./index.js"
},
"./adapters": {
"types": "./adapters.d.ts"
},
"./jwt": {
"types": "./jwt/index.d.ts",
"import": "./jwt/index.js"
"default": "./jwt/index.js"
},
"./react": {
"types": "./react/index.d.ts",
"import": "./react/index.js"
"default": "./react/index.js"
},
"./next": {
"types": "./next/index.d.ts",
"import": "./next/index.js"
"default": "./next/index.js"
},
"./middleware": {
"types": "./middleware.d.ts",
"import": "./middleware.js"
"default": "./middleware.js"
},
"./client/_utils": {
"types": "./client/_utils.d.ts",
"import": "./client/_utils.js"
"default": "./client/_utils.js"
},
"./providers/*": {
"types": "./providers/*.d.ts",
"import": "./providers/*.js"
"default": "./providers/*.js"
}
},
"scripts": {
Expand Down

1 comment on commit 09c2a89

@vercel
Copy link

@vercel vercel bot commented on 09c2a89 Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.