kt-extendscript-builder
Version:
Vite based builder for transpile TypeScript to ExtendScript
19 lines (18 loc) • 640 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Cleaner = void 0;
const path_1 = __importDefault(require("path"));
const fs_1 = __importDefault(require("fs"));
class Cleaner {
static cleanDist(options) {
const distPath = path_1.default.dirname(options.output);
if (!fs_1.default.existsSync(distPath)) {
console.warn(`${distPath} does not exist. Skiping dist clean`);
return;
}
}
}
exports.Cleaner = Cleaner;