message: fix: Fix codemod command
  Fix the incorrect usage of `spawn` from This update uses `spawn`'s streaming API instead of `exec`s API.
  [category:Infrastructure]
diff: @@ -42,18 +42,19 @@ const transform = commands[0];
  console.log(transform, path);
  console.log(`\nApplying ${transform} transform to '${path}'\n`.brightBlue);
  +const args = `-t ${__dirname}/dist/es6/${transform} ${path} --parser tsx --extensions js,jsx,ts,tsx`.split(
  + ' '
  +);
  -spawn(
  - `jscodeshift -t ${__dirname}/dist/es6/${transform} ${path} --parser=tsx --extensions=js,jsx,ts,tsx`,
  - (error, stdout, stderr) => {
  - if (error) {
  - console.error(`${error}\n`);
  - return;
  - }
  - console.log(`${stdout}\n`);
  +const proc = spawn(`jscodeshift`, args);
  - if (stderr) {
  - console.error(`${stderr}\n`);
  - }
  - }
  -);
  +let errCode = 0;
  +proc.stdout.on('data', data => console.log(data.toString()));
  +proc.stderr.on('data', data => {
  + errCode = 1;
  + console.error(data.toString());
  +});
  +
  +proc.on('close', code => {
  + process.exit(code || errCode);
  +});
  