Skip to content

Commit

Permalink
fix: get vitest version on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed May 6, 2022
1 parent bcc3840 commit 5735ceb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pure/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ export async function getVitestVersion(vitestPath?: string): Promise<string> {
process = spawn("npx", ["vitest", "-v"], {
stdio: ["ignore", "pipe", "pipe"],
});
} else if (vitestPath.endsWith("js") && isWindows) {
process = spawn("node", [vitestPath, "-v"], {
stdio: ["ignore", "pipe", "pipe"],
});
} else {
process = spawn(vitestPath, ["-v"], {
process = spawn("node", [vitestPath, "-v"], {
stdio: ["ignore", "pipe", "pipe"],
});
}
Expand Down

0 comments on commit 5735ceb

Please sign in to comment.