How to use the execa.default function in execa

To help you get started, we’ve selected a few execa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deepsweet / start / packages / plugin-lib-flow-generate / src / index.ts View on Github external
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
        })
      )