Skip to content

Conversation

DanielRosenwasser
Copy link

While many developers assume that baseUrl is a requirement to use paths, that hasn't been the case for a few years (see this pull request here).

Using baseUrl isn't recommended because it allows developers to accidentally resolve directly via the baseUrl over paths. Additionally, the TypeScript team plans to deprecate baseUrl in 6.0, with no support in 7.0 (the native port of TypeScript).

This PR removes usage of baseUrl in tsconfig.json files and removes recommendations of it from the documentation.

Copy link

vercel bot commented May 5, 2025

@DanielRosenwasser is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
Copy link
Author

Choose a reason for hiding this comment

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

By the way, why does the "solution"/"workspace root" tsconfig.json need to have this configured? What depends on the options in this tsconfig.json? I would think only tsconfig.app.json needs to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants