| 6 | import logError from './log-error'; |
| 7 | |
| 8 | const run = opts => { |
| 9 | microbundle(opts) |
| 10 | .then(({ output }) => { |
| 11 | if (output != null) stdout(output); |
| 12 | if (!opts.watch) process.exit(0); |
| 13 | }) |
| 14 | .catch(err => { |
| 15 | process.exitCode = (typeof err.code === 'number' && err.code) || 1; |
| 16 | logError(err); |
| 17 | process.exit(); |
| 18 | }); |
| 19 | }; |
| 20 | |
| 21 | prog(run)(process.argv); |
nothing calls this directly
no test coverage detected