fix: rebuild errors on windows (#692)
This commit is contained in:
1 parent
f36376503a
commit
8eec47c340
4 files changed
+27
-5
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user