Skip to content

Commit

Permalink
fix(normalizePath): windows to POSIX (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree authored Feb 7, 2022
1 parent b32d7aa commit 5d73fd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,17 @@ export class Context {
.on('unlink', (path) => {
if (!matchGlobs(path, globs))
return

path = slash(path)
this.removeComponents(path)
this.onUpdate(path)
})
watcher
.on('add', (path) => {
if (!matchGlobs(path, globs))
return

path = slash(path)
this.addComponents(path)
this.onUpdate(path)
})
Expand Down

0 comments on commit 5d73fd7

Please sign in to comment.