mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
chore: rebuild all files instead of just what changed
This commit is contained in:
parent
02505750ad
commit
295e47638e
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue