mirror of
https://github.com/PaulRBerg/hardhat-template.git
synced 2026-04-20 03:00:26 -04:00
13 lines
473 B
TypeScript
13 lines
473 B
TypeScript
import fsExtra from "fs-extra";
|
|
import { TASK_CLEAN } from "@nomiclabs/buidler/builtin-tasks/task-names";
|
|
import { task } from "@nomiclabs/buidler/config";
|
|
|
|
task(TASK_CLEAN, "Overrides the standard clean task", async function (_taskArgs, { config }, runSuper) {
|
|
await fsExtra.remove(config.paths.coverage);
|
|
await fsExtra.remove(config.paths.coverageJson);
|
|
if (config.typechain?.outDir) {
|
|
await fsExtra.remove(config.typechain.outDir);
|
|
}
|
|
await runSuper();
|
|
});
|