aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-12-19 22:06:11 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-12-19 22:41:49 +0800
commit237014e823ad4fba7bea50bdf8ec9b5a5cc25918 (patch)
tree59e9b464dc6bfabbf8fd6d8e5af5373775e49137 /packages
parent85a8c6160f046ad5b5e33d30fc7a71abea3ecf33 (diff)
downloaddexon-sol-tools-237014e823ad4fba7bea50bdf8ec9b5a5cc25918.tar
dexon-sol-tools-237014e823ad4fba7bea50bdf8ec9b5a5cc25918.tar.gz
dexon-sol-tools-237014e823ad4fba7bea50bdf8ec9b5a5cc25918.tar.bz2
dexon-sol-tools-237014e823ad4fba7bea50bdf8ec9b5a5cc25918.tar.lz
dexon-sol-tools-237014e823ad4fba7bea50bdf8ec9b5a5cc25918.tar.xz
dexon-sol-tools-237014e823ad4fba7bea50bdf8ec9b5a5cc25918.tar.zst
dexon-sol-tools-237014e823ad4fba7bea50bdf8ec9b5a5cc25918.zip
Disable linter no a hanging promise with a comment
Diffstat (limited to 'packages')
-rw-r--r--packages/sol-compiler/src/compiler.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts
index 986999254..b3531ab65 100644
--- a/packages/sol-compiler/src/compiler.ts
+++ b/packages/sol-compiler/src/compiler.ts
@@ -33,7 +33,6 @@ import {
} from './utils/compiler';
import { constants } from './utils/constants';
import { fsWrapper } from './utils/fs_wrapper';
-import { CompilationError } from './utils/types';
import { utils } from './utils/utils';
type TYPE_ALL_FILES_IDENTIFIER = '*';
@@ -157,7 +156,9 @@ export class Compiler {
watcher.on('change', (changedFilePath: string) => {
console.clear(); // tslint:disable-line:no-console
utils.logWithTime('File change detected. Starting incremental compilation...');
- onFileChangedAsync();
+ // NOTE: We can't await it here because that's a callback.
+ // Instead we stop watching inside of it and start it again when we're finished.
+ onFileChangedAsync(); // tslint:disable-line no-floating-promises
});
}
private _getPathsToWatch(): string[] {