Copy all static files when versionedDeploy is used
()
| 664 | |
| 665 | /** Copy all static files when versionedDeploy is used */ |
| 666 | async 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 | |
| 678 | exports.default = renderFile; |
| 679 | exports.renderFile = renderFile; |