Cotal TypeScript packages
    Preparing search index...

    Function canonicalRoot

    • Canonicalize a project root for comparison. A recorded root is whatever spelling cotal up was run under, so the same directory reaches us by several names: a symlinked root (macOS /var → /private/var) or, on Windows, an 8.3 short name (C:\Users\RUNNER~1\…) — process.cwd() keeps the short form there rather than expanding it. realpath collapses both. Falls back to resolve for a root that no longer exists on disk.

      Parameters

      • p: string

      Returns string