We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7853e1 commit 3dfe1d5Copy full SHA for 3dfe1d5
source/lib/all-events.ts
@@ -19,7 +19,9 @@ async function watchForDirectoryChanges() {
19
}
20
21
22
-await watchForDirectoryChanges();
+// We do not want to await this Promise, since it will never resolve and would cause the module to hang on load.
23
+// eslint-disable-next-line unicorn/prefer-top-level-await
24
+void watchForDirectoryChanges();
25
26
async function loadDirectory(): Promise<Partial<EventDirectory>> {
27
const directoryString = await readFile(DIRECTORY_FILE);
0 commit comments