@@ -309,8 +309,6 @@ function _unlink(ws, metadata) {
309309const watchersMap = { } ;
310310function _watch ( ws , metadata ) {
311311 const fullPathToWatch = metadata . data . path ,
312- // array of anymatch compatible path definition. Eg. ["**/{node_modules,bower_components}/**"]. full path is checked
313- ignoredPaths = metadata . data . ignoredPaths ,
314312 // contents of a gitIgnore file as text. The given path is used as the base path for gitIgnore
315313 gitIgnorePaths = metadata . data . gitIgnorePaths ,
316314 persistent = metadata . data . persistent || true ,
@@ -335,10 +333,6 @@ function _watch(ws, metadata) {
335333 return true ;
336334 }
337335 const relativePath = path . relative ( fullPathToWatch , pathToFilter ) ;
338- if ( anymatch ( ignoredPaths , pathToFilter ) ) {
339- debugMode && console . log ( "PhoenixFS: anymatch ignored watch path: " , pathToFilter , "rel: " , relativePath ) ;
340- return true ;
341- }
342336 if ( relativePath && gitignore . ignores ( relativePath ) ) {
343337 debugMode && console . log ( "PhoenixFS: gitignore ignored watch gitIgnore path: " , pathToFilter , "rel: " , relativePath ) ;
344338 return true ;
@@ -351,6 +345,7 @@ function _watch(ws, metadata) {
351345 const watcher = chokidar . watch ( fullPathToWatch , {
352346 persistent,
353347 ignoreInitial,
348+ depth : 99 ,
354349 ignorePermissionErrors : true ,
355350 ignored : path => isIgnored ( path )
356351 } ) ;
0 commit comments