فهرست منبع

Remove existing build directory before building.

Lee Morgan 2 هفته پیش
والد
کامیت
e5a51f595e
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      index.js

+ 1 - 0
index.js

@@ -6,6 +6,7 @@ import parseDir from "./parseDir2.js";
 export default async (express, options = {})=> {
     console.time("Build Completed In");
 
+    await fs.rm(path.join(process.cwd(), ".build/"), {recursive: true, force: true});
     const app = express();
     const root = path.join(process.cwd(), "routes");
     readFiles(root, root, app);