diff --git a/dist/index.js b/dist/index.js index fe5abe5..c98f966 100644 --- a/dist/index.js +++ b/dist/index.js @@ -160,7 +160,7 @@ function traverseFiles(src, dst) { } else if (!(srcFolder === null || srcFolder === void 0 ? void 0 : srcFolder.match(/\.[^\/]+$/))) { fs_1.default.watch(srcFolder, { - recursive: ((_a = process.platform) === null || _a === void 0 ? void 0 : _a.match(/win/i)) + recursive: ((_a = process.platform) === null || _a === void 0 ? void 0 : _a.match(/win32/i)) ? true : undefined, }, (evtType, fileName) => { diff --git a/package.json b/package.json index f47c775..d482118 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lessc-watcher", - "version": "1.2.0", + "version": "1.2.1", "description": "A minimal package to watch less files and compile them to css", "main": "dist/index.js", "bin": { diff --git a/src/index.ts b/src/index.ts index 54ee251..a81c51f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -217,7 +217,7 @@ function traverseFiles(src: string, dst: string) { fs.watch( srcFolder, { - recursive: process.platform?.match(/win/i) + recursive: process.platform?.match(/win32/i) ? true : undefined, },