Skip to content
10 changes: 9 additions & 1 deletion packages/cli/src/utils/resolvePath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,13 @@
} else if (p === '~' || p.startsWith('~/')) {
expandedPath = homedir() + p.substring(1);
}
return path.normalize(expandedPath);
try {
return path.normalize(expandedPath);
} catch (err: any) {

Check failure on line 22 in packages/cli/src/utils/resolvePath.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
if (err.code === 'ENAMETOOLONG') {
return expandedPath;
}
throw err;
}

}
Loading