(changedFiles, _, platforms)
| 77 | |
| 78 | /** @type {(changedFiles: string[], watcher: FSWatcher, platforms: any) => Promise<void>} */ |
| 79 | const onChange = async (changedFiles, _, platforms) => { |
| 80 | for (const file of changedFiles) { |
| 81 | if (await pathExists(file)) { |
| 82 | for (const platform of Object.values(PLATFORM).filter((platform) => platforms[platform])) { |
| 83 | await copyEntry(file, {debug: true, platform}); |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | reload.reload({type: reload.FULL}); |
| 88 | }; |
| 89 | |
| 90 | return createTask( |
| 91 | 'copy', |
nothing calls this directly
no test coverage detected