diff --git a/tools/watcher.ts b/tools/watcher.ts index 74bb922..e00bac2 100644 --- a/tools/watcher.ts +++ b/tools/watcher.ts @@ -1,5 +1,5 @@ /* eslint-disable no-console */ -import { watch } from 'chokidar'; +import chokidar from 'chokidar'; import { runBuild } from './builder'; import copyContents from './copier'; @@ -8,7 +8,7 @@ const buildWatch = () => { runBuild(true).catch(console.error); // Watch directories - const watcher = watch(['public/'], { + const watcher = chokidar.watch(['public/'], { ignored: /node_modules/, persistent: true, }); diff --git a/tsconfig.json b/tsconfig.json index 22f0bdb..d34f795 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -47,5 +47,12 @@ "isolatedModules": true // "checkJs": true, }, - "exclude": ["node_modules", "dist", "build", "web-ext-artifacts", "docs"] + "exclude": [ + "node_modules", + "dist", + "build", + "web-ext-artifacts", + "docs", + "tools" + ] }