Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
files.map((file) =>
execa(
'node',
[flowBinPath, 'gen-flow-files', file.path, '--out-dir', outDir, ...flowArgs],
spawnOptions
).then(() => {
log(path.join(outDir, `${path.basename(file.path)}.flow`))
return file
})
)