intials app
This commit is contained in:
16
scripts/lstDocCopy.mjs
Normal file
16
scripts/lstDocCopy.mjs
Normal file
@@ -0,0 +1,16 @@
|
||||
// scripts/lstDocCopy.mjs
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
const src = path.resolve("lstDocs/build");
|
||||
const dest = path.resolve("dist/docs");
|
||||
|
||||
// Delete old docs if they exist
|
||||
if (fs.existsSync(dest)) {
|
||||
fs.rmSync(dest, { recursive: true, force: true });
|
||||
}
|
||||
|
||||
// Copy everything (not just assets)
|
||||
fs.cpSync(src, dest, { recursive: true });
|
||||
|
||||
console.log(`📄 Copied docs from ${src} → ${dest}`);
|
||||
Reference in New Issue
Block a user