1
1
mirror of https://github.com/orhun/git-cliff.git synced 2025-01-07 12:16:49 +03:00

fix(npm): fix the variable declaration for NPM package OS

This commit is contained in:
Orhun Parmaksız 2023-01-09 19:28:02 +03:00
parent 24c8e3e4cf
commit f40a56588e
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

@ -12,8 +12,7 @@ import { spawnSync } from "child_process"
*/ */
function getExePath() { function getExePath() {
const arch = process.arch; const arch = process.arch;
const os = process.platform; let os = process.platform;
let extension = ''; let extension = '';
if (['win32', 'cygwin'].includes(process.platform)) { if (['win32', 'cygwin'].includes(process.platform)) {
os = 'windows'; os = 'windows';