[CORL-1074] Upgrade dependencies (#2999)

* chore: upgrade eslint, typescript

* chore: upgrade deps

* chore: revert upgrade ts-node-dev

* chore: revert unneeded comments

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Vinh
2020-06-26 22:38:52 +00:00
committed by GitHub
co-authored by kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 0db5bc846d
commit 2acc761a5d
104 changed files with 6367 additions and 5509 deletions
+1
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env ts-node
import dotenv from "dotenv";
// Apply all the configuration provided in the .env file if it isn't already in
+1 -1
View File
@@ -76,7 +76,7 @@ export default class CommandExecutor implements Executor {
});
}
public execute(filePath: string) {
public execute(filePath: string): void {
this.spawnProcessPotentiallyDebounced();
}
}
+2 -2
View File
@@ -99,14 +99,14 @@ export default class LongRunningExecutor implements Executor {
}
// This is called before exiting.
public async onCleanup() {
public async onCleanup(): Promise<void> {
this.restartDebounced.cancel();
if (this.isRunning) {
await this.kill();
}
}
public execute(filePath: string) {
public execute(filePath: string): void {
if (this.isRunning) {
this.restartDebounced();
return;
+4 -1
View File
@@ -80,7 +80,10 @@ function filterOnly(
}) as Config["watchers"];
}
export default async function watch(config: Config, options: Options = {}) {
export default async function watch(
config: Config,
options: Options = {}
): Promise<void> {
Joi.assert(config, configSchema);
const watcher: Watcher = config.backend || new SaneWatcher();
const rootDir = config.rootDir || process.cwd();