| 18 | args.projectRoots = args.projectRoots.concat(args.root); |
| 19 | |
| 20 | const startedCallback = logReporter => { |
| 21 | logReporter.update({ |
| 22 | type: 'initialize_packager_started', |
| 23 | port: args.port, |
| 24 | projectRoots: args.projectRoots, |
| 25 | }); |
| 26 | |
| 27 | process.on('uncaughtException', error => { |
| 28 | logReporter.update({ |
| 29 | type: 'initialize_packager_failed', |
| 30 | port: args.port, |
| 31 | error, |
| 32 | }); |
| 33 | |
| 34 | process.exit(11); |
| 35 | }); |
| 36 | }; |
| 37 | |
| 38 | const readyCallback = logReporter => { |
| 39 | logReporter.update({ |