gulpjs / gulpjs/glob-watcher

When there is a midline, the watch result is wrong.

Open
#63 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
80
Forks
56
PR merge metrics
No merged PRs in 30d

Description

When there is a midline, the watch result is wrong.

### Please give us a sample of your gulpfile
```js
var gulp = require(‘gulp');

gulp.task('watch', series(() => {
watch([
'src/**/*',
], {
ignored: [
'src/abc/**/*',
]
}, () => {
return gulp.src('src/**/*')
.pipe(gulp.dest('es'));
}).on('all', (stats, file) => {
console.log(`File [${file}] ${stats}`);
})
}));
```

### What were you expecting to happen?
`src/abc-def/index.js` should be watched

### What actually happened?
`src/abc-def/index.js` is ignored

### Additional information
The primary cause is anymatch. see https://github.com/micromatch/anymatch/issues/35

We should update anymatch (the dependencies of glob-watcher) to the latest, then update glob-watcher (the dependencies of gulp) to the latest

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.