(existingPaths: string[])
| 5 | const rootDir = path.resolve('/repo/colmap-webview'); |
| 6 | |
| 7 | function makePathExists(existingPaths: string[]) { |
| 8 | const normalized = new Set(existingPaths.map((targetPath) => path.normalize(targetPath))); |
| 9 | return (targetPath: string) => normalized.has(path.normalize(targetPath)); |
| 10 | } |
| 11 | |
| 12 | function makePolicy({ |
| 13 | command = 'build', |