Skip to content

Commit

Permalink
Merge pull request #350 from danielpinto8zz6/speedup-compilation
Browse files Browse the repository at this point in the history
fix: 🐛 Fix slow compilation on windows with temporary workaroun
  • Loading branch information
danielpinto8zz6 authored Jan 31, 2024
2 parents 8390791 + 30f035f commit 5487865
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/utils/common-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,20 @@ export async function commandExists(command: string): Promise<boolean> {
}

export async function isProccessRunning(proccess: string): Promise<boolean> {
// Temporary workaround for windows, it is impacting the performance
if (isWindows()) {
return false;
}

// Temporary workaround for wsl
if (isWsl){
if (isWsl) {
return false;
}

const list = await find("name", proccess, true);
return list.length > 0;
}

export function isWindows(): boolean {
return process.platform === "win32";
}

0 comments on commit 5487865

Please sign in to comment.