UNPKG

zents-cli

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

19 lines (18 loc) 543 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeDirOrFile = void 0; const tslib_1 = require("tslib"); const rimraf_1 = tslib_1.__importDefault(require("rimraf")); async function removeDirOrFile(dir) { return new Promise((resolve, reject) => { rimraf_1.default(dir, { disableGlob: true, }, (err) => { if (err) { return reject(err); } return resolve(); }); }); } exports.removeDirOrFile = removeDirOrFile;