()
| 71 | } |
| 72 | |
| 73 | function getNormalizedPaths(): [invokedPath: string, execPath: string] { |
| 74 | let invokedPath = process.argv[1] || '' |
| 75 | let execPath = process.execPath || process.argv[0] || '' |
| 76 | |
| 77 | // On Windows, convert backslashes to forward slashes for consistent path matching |
| 78 | if (getPlatform() === 'windows') { |
| 79 | invokedPath = invokedPath.split(win32.sep).join(posix.sep) |
| 80 | execPath = execPath.split(win32.sep).join(posix.sep) |
| 81 | } |
| 82 | |
| 83 | return [invokedPath, execPath] |
| 84 | } |
| 85 | |
| 86 | export async function getCurrentInstallationType(): Promise<InstallationType> { |
| 87 | if (process.env.NODE_ENV === 'development') { |
no test coverage detected