const path = require("path"); const { ncp } = require("ncp"); ncp.limit = 16; const source = path.resolve(__dirname, "docs", ".vitepress", "dist"); const destination = path.resolve(__dirname, "dist", "docs"); ncp(source, destination, function (err) { if (err) { return console.error(err); } console.log("done!"); });