1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-09-11 06:55:38 +03:00

fix(npm): fix the type casting in base NPM package

This commit is contained in:
Orhun Parmaksız 2023-01-09 19:56:09 +03:00
parent 56101f058c
commit bc0807fe93
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

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