@nomiclabs/buidler
Version:
Buidler is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
17 lines (13 loc) • 386 B
text/typescript
import fsExtra from "fs-extra";
import { task } from "../internal/core/config/config-env";
import { TASK_CLEAN } from "./task-names";
export default function () {
task(
TASK_CLEAN,
"Clears the cache and deletes all artifacts",
async (_, { config }) => {
await fsExtra.emptyDir(config.paths.cache);
await fsExtra.remove(config.paths.artifacts);
}
);
}