bugfix
This commit is contained in:
parent
59d73239d8
commit
cb5f1a0efd
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -160,7 +160,7 @@ function traverseFiles(src, dst) {
|
|||||||
}
|
}
|
||||||
else if (!(srcFolder === null || srcFolder === void 0 ? void 0 : srcFolder.match(/\.[^\/]+$/))) {
|
else if (!(srcFolder === null || srcFolder === void 0 ? void 0 : srcFolder.match(/\.[^\/]+$/))) {
|
||||||
fs_1.default.watch(srcFolder, {
|
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
|
? true
|
||||||
: undefined,
|
: undefined,
|
||||||
}, (evtType, fileName) => {
|
}, (evtType, fileName) => {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lessc-watcher",
|
"name": "lessc-watcher",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"description": "A minimal package to watch less files and compile them to css",
|
"description": "A minimal package to watch less files and compile them to css",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -217,7 +217,7 @@ function traverseFiles(src: string, dst: string) {
|
|||||||
fs.watch(
|
fs.watch(
|
||||||
srcFolder,
|
srcFolder,
|
||||||
{
|
{
|
||||||
recursive: process.platform?.match(/win/i)
|
recursive: process.platform?.match(/win32/i)
|
||||||
? true
|
? true
|
||||||
: undefined,
|
: undefined,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user