boats
Version:
Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.
15 lines (14 loc) • 615 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const upath_1 = tslib_1.__importDefault(require("upath"));
const constants_1 = require("./constants");
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
exports.default = (inputDirectory) => {
const fullTmpPath = upath_1.default.join(process.cwd(),
// add the tmp folder name or not
upath_1.default.dirname(inputDirectory) + constants_1.TMP_COMPILED_DIR_NAME);
if (fs_extra_1.default.existsSync(fullTmpPath)) {
fs_extra_1.default.removeSync(fullTmpPath);
}
};