Skip to content

Commit 70d677c

Browse files
committed
fix: escape */ in JSDoc to prevent TypeScript 6.0.3 early comment termination
The JSDoc for findHighestCachedVersion contained the literal text 'v*/' which the TypeScript 6.0.3 tokenizer interprets as closing the multi-line comment, causing 62 cascading TS errors across the file. Replaced the glob pattern description with an explicit versioned-cache example that avoids the */ sequence.
1 parent f0a471c commit 70d677c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/aft-bridge/src/resolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ function parsePathLookupOutput(output: string): string[] {
150150
/**
151151
* Scan the versioned cache directory for the highest available binary version.
152152
*
153-
* Iterates over `<cacheDir>/v*/aft[.exe]` entries, reads each binary's version,
153+
* Iterates over versioned cache entries (e.g. `<cacheDir>/v0.30.0/aft`), reads each binary's version,
154154
* and returns the one with the highest semantic version. This is the fallback
155155
* when the exact plugin version isn't cached but a newer version was downloaded
156156
* by `aft doctor --fix` or a previous `ensureBinary` call.
157157
*
158-
* @returns `{ path, version }` for the highest-versioned valid binary, or null.
158+
* @returns The path and version of the highest-versioned binary, or null.
159159
*/
160160
function findHighestCachedVersion(
161161
cacheDir: string,

0 commit comments

Comments
 (0)