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

15 lines
275 B

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