chore: cleanup test output dir

This commit is contained in:
M. George Hansen 2020-06-10 18:12:38 -07:00
parent db142fdff4
commit 5bde7a062d
Signed by: mgeorgehansen
SSH key fingerprint: SHA256:JlIGiQLPyQ2RHTH3a2oVlb20Xkh9Glr8DUF4YTXHJxM

View file

@ -8,6 +8,7 @@ import * as path from "path";
const ROOT_DIR = path.resolve(__dirname, "..");
const DIST_DIR = path.join(ROOT_DIR, "dist");
const TEST_DIR = path.join(ROOT_DIR, ".test-dist");
const rmdirRecursive = (dirPath: string): void => {
if (!fs.existsSync(dirPath)) {
@ -27,3 +28,4 @@ const rmdirRecursive = (dirPath: string): void => {
};
rmdirRecursive(DIST_DIR);
rmdirRecursive(TEST_DIR);