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

Function copyAllRequiredFiles

scripts/website.js:667–677  ·  view source on GitHub ↗

Copy all static files when versionedDeploy is used

()

Source from the content-addressed store, hash-verified

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

Callers 1

website.jsFile · 0.85

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected