File size: 332 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import { globby } from "globby"
import { rm } from "node:fs/promises"
export async function cleanFiles() {
const files = await globby("src/**/*.{ts,tsx}", {
ignore: ["src/{def,utilities}.ts"],
})
const promises = files.map(async (file) => {
return rm(file, { recursive: true })
})
await Promise.all(promises)
}
|