mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 15:42:09 -05:00
chore(type): typecheck issue resolved
This commit is contained in:
@@ -12,9 +12,7 @@ const getCliPath = async () => {
|
||||
const binPath =
|
||||
typeof pkgJson.bin === "string"
|
||||
? pkgJson.bin
|
||||
: typeof pkgJson.bin === "object" && pkgJson.bin !== null
|
||||
? Object.values(pkgJson.bin)[0]
|
||||
: "./dist/index.mjs";
|
||||
: (Object.values(pkgJson.bin ?? {})[0] ?? "./dist/index.mjs");
|
||||
return path.join(rootDir, binPath);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user