1 |
|
2 |
|
3 | const { inspect } = require('util')
|
4 | const files = require('./src/files')
|
5 | const reporter = require('./src/reporter')
|
6 | const build = require('./src/build')
|
7 |
|
8 | reporter(files)
|
9 |
|
10 | process.on('unhandledRejection', function(reason) {
|
11 | console.log('Unhandled Promise')
|
12 | console.log(inspect(reason))
|
13 | build.error()
|
14 | })
|