[state]: watchers return a state
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import * as minimist from 'minimist'
|
||||
import * as path from 'path'
|
||||
import {dwatch} from './lib/dwatch'
|
||||
import {Watcher} from "./lib/types/state";
|
||||
|
||||
process.on('uncaughtException', (err) => {
|
||||
// Dunno why this specific exception is not caught
|
||||
@@ -20,9 +21,9 @@ process.on('unhandledRejection', (err) => {
|
||||
console.log('Starting...')
|
||||
|
||||
try {
|
||||
await dwatch(argv.conf || path.join(__dirname, '../app.yml'))
|
||||
const watchers: Watcher[] = await dwatch(argv.conf || path.join(__dirname, '../app.yml'))
|
||||
} catch (e) {
|
||||
// webappServe(watchers)
|
||||
console.error(e)
|
||||
}
|
||||
})()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user