mirror of
https://github.com/interep-project/contracts.git
synced 2026-04-17 03:00:51 -04:00
15 lines
431 B
TypeScript
15 lines
431 B
TypeScript
import fsExtra from "fs-extra"
|
|
import { TASK_CLEAN } from "hardhat/builtin-tasks/task-names"
|
|
import { task } from "hardhat/config"
|
|
|
|
task(TASK_CLEAN, "Overrides the standard clean task", async (args, { config }, runSuper) => {
|
|
await fsExtra.remove("./coverage")
|
|
await fsExtra.remove("./coverage.json")
|
|
|
|
if (config.typechain?.outDir) {
|
|
await fsExtra.remove(config.typechain.outDir)
|
|
}
|
|
|
|
await runSuper()
|
|
})
|