From cb5f1a0efd3eccdff534cd3a93daad681ca90ee0 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Sat, 30 Sep 2023 19:36:01 +0100 Subject: [PATCH] bugfix --- dist/index.js | 2 +- package.json | 2 +- src/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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, },