diff --git a/libs/remixd/src/services/foundryClient.ts b/libs/remixd/src/services/foundryClient.ts index effdea49ac..15b8c3fbb5 100644 --- a/libs/remixd/src/services/foundryClient.ts +++ b/libs/remixd/src/services/foundryClient.ts @@ -90,7 +90,7 @@ export class FoundryClient extends PluginClient { listenOnFoundryCompilation () { try { - this.watcher = chokidar.watch(this.buildPath, { depth: 3, ignorePermissionErrors: true, ignoreInitial: true }) + this.watcher = chokidar.watch(this.cachePath, { depth: 0, ignorePermissionErrors: true, ignoreInitial: true }) this.watcher.on('change', async (f: string) => this.processArtifact()) this.watcher.on('add', async (f: string) => this.processArtifact())