Address CodeRabbit follow-ups for PR 40

This commit is contained in:
2026-04-03 11:37:12 -07:00
parent aa0385904e
commit c664f9f605
7 changed files with 195 additions and 10 deletions

View File

@@ -18,6 +18,7 @@ import {
uniqueNormalizedLangCodes,
sleep,
normalizeLangCode,
realpathMaybe,
} from './util.js';
export const state = {
@@ -380,8 +381,8 @@ export function findAppBinary(selfPath: string, pathModule: PathModule = path):
);
if (fromPath) {
const resolvedSelf = pathModule.resolve(selfPath);
const resolvedCandidate = pathModule.resolve(fromPath);
const resolvedSelf = realpathMaybe(selfPath);
const resolvedCandidate = realpathMaybe(fromPath);
if (resolvedSelf !== resolvedCandidate) return fromPath;
}