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

Function copyAllRequiredFiles

scripts/website.js:672–682  ·  view source on GitHub ↗

Copy all static files when versionedDeploy is used

()

Source from the content-addressed store, hash-verified

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

Callers 1

website.jsFile · 0.85

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected