-import { type FSWatcher, type WatchListener, readFileSync, watch } from 'node:fs'
+import { type FSWatcher, readFileSync, watch, type WatchListener } from 'node:fs'
+import type { FileType, JsonType } from '../types/index.js'
import { handleFileException } from './ErrorUtils.js'
import { logger } from './Logger.js'
import { isNotEmptyString } from './Utils.js'
-import type { FileType, JsonType } from '../types/index.js'
export const watchJsonFile = <T extends JsonType>(
file: string,