This commit is contained in:
Benjamin Toby 2023-09-30 19:36:01 +01:00
parent 59d73239d8
commit cb5f1a0efd
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -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) => {

View File

@ -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": {

View File

@ -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,
},