(filePath: string)
| 34 | } |
| 35 | |
| 36 | async function expectedRealPath(filePath: string): Promise<string> { |
| 37 | try { |
| 38 | return await realpath(filePath); |
| 39 | } catch { |
| 40 | return path.resolve(filePath); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | function writeExecutable( |
| 45 | filePath: string, |