(scriptPath)
| 799 | await copyFile(src, dest); |
| 800 | await writeScriptMeta(dest); |
| 801 | if (verbose) logger.debug(`Script: ${label}`); |
| 802 | }); |
| 803 | |
| 804 | // Preserve top-level bootstrap scripts under _boot/. |
| 805 | const bootFiles = [ |
| 806 | 'main.js', 'game.js', 'game.json', 'ccRequire.js', |
| 807 | 'adapter-min.js', 'physics-min.js', |
| 808 | ]; |
| 809 | const bootOut = path.join(outputPath, '_boot'); |
| 810 | for (const name of bootFiles) { |
| 811 | const src = path.join(sourcePath, name); |
| 812 | if (fs.existsSync(src)) { |
| 813 | await mkdir(bootOut, { recursive: true }); |
| 814 | await copyFile(src, path.join(bootOut, name)); |
| 815 | } |
no test coverage detected