@modyo/cli
Version:
Modyo CLI Command line to expose local development tools
21 lines (20 loc) • 821 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const path = tslib_1.__importStar(require("node:path"));
const fs_extra_1 = require("fs-extra");
const core_1 = require("@oclif/core");
const debug_1 = tslib_1.__importDefault(require("debug"));
const debug = (0, debug_1.default)('get/remove-tmp-zip-file.ts');
async function removeTempZipFile(tmpDirectory) {
core_1.ux.action.start('Removing tmp directory');
debug('removing');
const pathToRemove = path.join(tmpDirectory.path, 'template.zip');
debug(pathToRemove);
await (0, fs_extra_1.remove)(pathToRemove);
core_1.ux.action.stop();
core_1.ux.action.start('Removing tmp zip');
await tmpDirectory.cleanup();
core_1.ux.action.stop();
}
exports.default = removeTempZipFile;