UNPKG

730 BJavaScriptView Raw
1"use strict";
2var __importDefault = (this && this.__importDefault) || function (mod) {
3 return (mod && mod.__esModule) ? mod : { "default": mod };
4};
5Object.defineProperty(exports, "__esModule", { value: true });
6const fs_extra_1 = __importDefault(require("fs-extra"));
7const config_env_1 = require("../internal/core/config/config-env");
8const task_names_1 = require("./task-names");
9function 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}
15exports.default = default_1;
16//# sourceMappingURL=clean.js.map
\No newline at end of file