From f3454f2014a3b170ff4a42283f467120d3a106d5 Mon Sep 17 00:00:00 2001 From: ybouane Date: Fri, 11 Oct 2024 11:23:18 -0400 Subject: [PATCH] import fs and watchFile in one line. --- watcher.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/watcher.js b/watcher.js index 3700f4f..33857a3 100644 --- a/watcher.js +++ b/watcher.js @@ -1,5 +1,4 @@ -import fs from 'fs/promises'; -import {watchFile} from 'fs'; +import {promises as fs, watchFile} from 'fs'; let config = (await import('./config.js')).default; watchFile('./config.js', async ()=>{ // Dynamically reload config and watch it for changes.