Skip to content

fix: typescript inference issue when declaration is enabled#2142

Closed
Bekacru wants to merge 2 commits intomainfrom
fix/typescript-infer
Closed

fix: typescript inference issue when declaration is enabled#2142
Bekacru wants to merge 2 commits intomainfrom
fix/typescript-infer

Conversation

@Bekacru
Copy link
Copy Markdown
Contributor

@Bekacru Bekacru commented Apr 5, 2025

fixes #2123

@cubic-dev-ai
Copy link
Copy Markdown
Contributor

cubic-dev-ai bot commented Apr 5, 2025

Review this PR on mrge.io

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
better-auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2025 9:14pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
better-auth-demo ⬜️ Ignored (Inspect) Visit Preview Apr 6, 2025 9:14pm

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 5, 2025

Open in StackBlitz

npm i https://pkg.pr.new/better-auth/better-auth@2142
npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/cli@2142
npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/expo@2142
npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/stripe@2142

commit: e2d7968

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

AI code reviewer found 4 issues

},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"sideEffects": false,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Adding sideEffects: false might cause issues if any plugins have actual side effects that should be preserved during tree-shaking

}
},
"./plugins/access": {
"./plugins/*": {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wildcards in exports paths may not be compatible with all bundlers and tools

"solid-js/store",
"next/headers",
...Object.keys(dependencies),
...Object.keys(devDependencies),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Including all devDependencies as externals might be overly broad as dev-only tools shouldn't typically be externalized in the build config.

@Bekacru Bekacru closed this Apr 6, 2025
@Bekacru Bekacru deleted the fix/typescript-infer branch April 15, 2025 09:51
@better-auth better-auth locked as resolved and limited conversation to collaborators Apr 1, 2026
@bytaesu bytaesu added the locked Locked conversations after being closed for 7 days label Apr 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked Locked conversations after being closed for 7 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The inferred type of 'auth' cannot be named without a reference

2 participants