MCPcopy Create free account
hub / github.com/Automattic/mongoose / copyAllRequiredFiles

Function copyAllRequiredFiles

scripts/website.js:666–676  ·  view source on GitHub ↗

Copy all static files when versionedDeploy is used

()

Source from the content-addressed store, hash-verified

664
665/** Copy all static files when versionedDeploy is used */
666async function copyAllRequiredFiles() {
667 // dont copy files to themself
668 if (!versionObj.versionedDeploy) {
669 return;
670 }
671
672 await Promise.all(pathsToCopy.map(async v => {
673 const resultPath = path.resolve(cwd, path.join('.', versionObj.versionedPath, v));
674 await fsextra.copy(v, resultPath);
675 }));
676}
677
678exports.default = renderFile;
679exports.renderFile = renderFile;

Callers 1

website.jsFile · 0.85

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected