actions-hugo/lib/get-os.js
Shohei Ueda a6d33f08ac
config: enhance tsconfig.json (#44)
* config: enhance tsconfig.json (Set sourceMap and removeComments to true)
* gha: Add pull_request trigger, close #43
* config: Add waring emoji
2019-09-23 10:58:19 +09:00

18 lines
No EOL
438 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getOS(platform) {
if (platform === 'linux') {
return 'Linux';
}
else if (platform === 'darwin') {
return 'macOS';
}
else if (platform === 'win32') {
return 'Windows';
}
else {
throw new Error(`${platform} is not supported`);
}
}
exports.default = getOS;
//# sourceMappingURL=get-os.js.map