From bdc09d76afd6d924680243eb1ca43eb3ba552b5c Mon Sep 17 00:00:00 2001 From: markthree <1801982702@qq.com> Date: Sun, 6 Feb 2022 21:37:23 +0800 Subject: [PATCH] fix(normalizePath): windows to POSIX --- src/core/context.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/context.ts b/src/core/context.ts index 599b05ac..931d4157 100644 --- a/src/core/context.ts +++ b/src/core/context.ts @@ -73,6 +73,8 @@ export class Context { .on('unlink', (path) => { if (!matchGlobs(path, globs)) return + + path = slash(path) this.removeComponents(path) this.onUpdate(path) }) @@ -80,6 +82,8 @@ export class Context { .on('add', (path) => { if (!matchGlobs(path, globs)) return + + path = slash(path) this.addComponents(path) this.onUpdate(path) })