1 | import fsExtra from "fs-extra";
|
2 |
|
3 | import { task } from "../internal/core/config/config-env";
|
4 |
|
5 | import { TASK_CLEAN } from "./task-names";
|
6 |
|
7 | export default function () {
|
8 | task(
|
9 | TASK_CLEAN,
|
10 | "Clears the cache and deletes all artifacts",
|
11 | async (_, { config }) => {
|
12 | await fsExtra.emptyDir(config.paths.cache);
|
13 | await fsExtra.remove(config.paths.artifacts);
|
14 | }
|
15 | );
|
16 | }
|