setup-dotnet/src/utils.ts
2023-05-25 13:11:13 +02:00

7 lines
246 B
TypeScript

export const IS_WINDOWS = process.platform === 'win32';
export const PLATFORM = ((): 'windows' | 'linux' | 'mac' => {
if (process.platform === 'win32') return 'windows';
if (process.platform === 'linux') return 'linux';
return 'mac';
})();