chore: cleanup test output dir
This commit is contained in:
parent
d9bd3b791f
commit
df114ea5b2
1 changed files with 2 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import * as path from "path";
|
||||||
|
|
||||||
const ROOT_DIR = path.resolve(__dirname, "..");
|
const ROOT_DIR = path.resolve(__dirname, "..");
|
||||||
const DIST_DIR = path.join(ROOT_DIR, "dist");
|
const DIST_DIR = path.join(ROOT_DIR, "dist");
|
||||||
|
const TEST_DIR = path.join(ROOT_DIR, ".test-dist");
|
||||||
|
|
||||||
const rmdirRecursive = (dirPath: string): void => {
|
const rmdirRecursive = (dirPath: string): void => {
|
||||||
if (!fs.existsSync(dirPath)) {
|
if (!fs.existsSync(dirPath)) {
|
||||||
|
|
@ -27,3 +28,4 @@ const rmdirRecursive = (dirPath: string): void => {
|
||||||
};
|
};
|
||||||
|
|
||||||
rmdirRecursive(DIST_DIR);
|
rmdirRecursive(DIST_DIR);
|
||||||
|
rmdirRecursive(TEST_DIR);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue