chore: rebuild all files instead of just what changed

This commit is contained in:
Miodec 2024-08-09 16:59:56 +02:00
parent 02505750ad
commit 295e47638e
2 changed files with 8 additions and 2 deletions

View file

@ -33,6 +33,11 @@ const BASE_CONFIG = {
open: process.env.SERVER_OPEN !== "false",
port: 3000,
host: process.env.BACKEND_URL !== undefined,
watch: {
//we rebuild the whole contracts package when a file changes
//so we only want to watch one file
ignored: [/.*\/packages\/contracts\/dist\/(?!configs).*/],
},
},
clearScreen: false,
root: "src",

View file

@ -81,9 +81,10 @@ if (isWatch) {
console.log("Starting watch mode...");
chokidar.watch("./src/**/*.ts").on(
"change",
(path) => {
(_path) => {
console.log("File change detected...");
build(path, false, false);
// build(path, false, false);
buildAll(false, false);
},
{
ignoreInitial: true,