chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { existsSync, mkdirSync, rmSync } from "node:fs";
|
||||
|
||||
export default function prepareOutDir(dir) {
|
||||
if (existsSync(dir)) {
|
||||
rmSync(dir, { recursive: true, force: true });
|
||||
}
|
||||
|
||||
mkdirSync(dir, { recursive: true });
|
||||
}
|
||||
Reference in New Issue
Block a user