1 | "use strict";
|
2 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
3 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
4 | };
|
5 | Object.defineProperty(exports, "__esModule", { value: true });
|
6 | const fs_extra_1 = __importDefault(require("fs-extra"));
|
7 | const config_env_1 = require("../internal/core/config/config-env");
|
8 | const task_names_1 = require("./task-names");
|
9 | function default_1() {
|
10 | config_env_1.task(task_names_1.TASK_CLEAN, "Clears the cache and deletes all artifacts", async (_, { config }) => {
|
11 | await fs_extra_1.default.emptyDir(config.paths.cache);
|
12 | await fs_extra_1.default.remove(config.paths.artifacts);
|
13 | });
|
14 | }
|
15 | exports.default = default_1;
|
16 |
|
\ | No newline at end of file |