You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/utils/clear.ts

13 lines
257 B

import path = require("path");
import fs = require("fs");
import { getFiles } from "./utils";
let dist = path.resolve("./dist");
let files = getFiles(dist, []);
for (let f of files)
{
if (f.indexOf("main.js") !== -1)
fs.unlink(f, e => { });
}