Revert "fix: rebuild errors on windows (#692)" (#695)

This reverts commit 8eec47c340.
This commit is contained in:
kabirgh
2024-01-15 19:51:46 +00:00
committed by GitHub
parent 8eec47c340
commit 30640e3441
4 changed files with 5 additions and 27 deletions

View File

@ -1,13 +0,0 @@
import os from "os"
import { rimraf, RimrafAsyncOptions } from "rimraf"
export async function rmrf(
path: string | string[],
opt?: RimrafAsyncOptions | undefined,
): Promise<boolean> {
if (os.platform() == "win32") {
return rimraf.windows(path, opt)
} else {
return rimraf(path, opt)
}
}