chore(type): typecheck issue resolved

This commit is contained in:
Ridhim-RR
2025-11-28 08:41:10 +05:30
parent ed955be1e4
commit 46b1ab2c96

View File

@@ -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);
};