mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-24 08:01:56 -05:00
fix: check jsconfig.json when tsconfig.json is missing in getPathAliases
Fixes #7649
This commit is contained in:
@@ -120,7 +120,10 @@ function getPathAliasesRecursive(
|
||||
}
|
||||
|
||||
function getPathAliases(cwd: string): Record<string, string> | null {
|
||||
const tsConfigPath = path.join(cwd, "tsconfig.json");
|
||||
let tsConfigPath = path.join(cwd, "tsconfig.json");
|
||||
if (!fs.existsSync(tsConfigPath)) {
|
||||
tsConfigPath = path.join(cwd, "jsconfig.json");
|
||||
}
|
||||
if (!fs.existsSync(tsConfigPath)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user