From ff5d4b1927e7d17b4496cb0e8e5694b92222b58a Mon Sep 17 00:00:00 2001 From: Lab Rat Date: Sun, 8 Dec 2024 20:37:19 +0530 Subject: [PATCH] ci: fix failing builds --- tools/watcher.ts | 4 ++-- tsconfig.json | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) 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" + ] }