watcher depth

pull/3285/head
filip mertens 2 years ago
parent 93dfbd8e1c
commit 012ebd2749
  1. 2
      libs/remixd/src/services/hardhatClient.ts
  2. 2
      libs/remixd/src/services/truffleClient.ts

@ -150,7 +150,7 @@ export class HardhatClient extends PluginClient {
console.log('Hardhat artifacts folder doesn\'t exist... waiting for the compilation.')
try {
if(this.watcher) this.watcher.close()
this.watcher = chokidar.watch(this.currentSharedFolder, { depth: 1, ignorePermissionErrors: true, ignoreInitial: true })
this.watcher = chokidar.watch(this.currentSharedFolder, { depth: 2, ignorePermissionErrors: true, ignoreInitial: true })
// watch for new folders
this.watcher.on('addDir', () => {
if (fs.existsSync(this.buildPath)) {

@ -53,7 +53,7 @@ export class TruffleClient extends PluginClient {
console.log('Truffle build folder doesn\'t exist... waiting for the compilation.')
try {
if (this.watcher) this.watcher.close()
this.watcher = chokidar.watch(this.currentSharedFolder, { depth: 1, ignorePermissionErrors: true, ignoreInitial: true })
this.watcher = chokidar.watch(this.currentSharedFolder, { depth: 2, ignorePermissionErrors: true, ignoreInitial: true })
// watch for new folders
this.watcher.on('addDir', () => {
if (fs.existsSync(this.buildPath)) {

Loading…
Cancel
Save