UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

13 lines (9 loc) 376 B
import type { CleanHooks } from "../../../../types/hooks.js"; import { remove } from "@nomicfoundation/hardhat-utils/fs"; import { getCoveragePath } from "../helpers.js"; export default async (): Promise<Partial<CleanHooks>> => ({ onClean: async (context) => { const coveragePath = getCoveragePath(context.config.paths.root); await remove(coveragePath); }, });