@lvce-editor/file-watcher-process 4.14.1 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1435,6 +1435,7 @@ const send = event => {
|
|
|
1435
1435
|
});
|
|
1436
1436
|
};
|
|
1437
1437
|
const watchFolders = async ({
|
|
1438
|
+
depth,
|
|
1438
1439
|
exclude,
|
|
1439
1440
|
id,
|
|
1440
1441
|
roots,
|
|
@@ -1482,6 +1483,9 @@ const watchFolders = async ({
|
|
|
1482
1483
|
const ignored = useGitIgnore ? await createIgnored(path, exclude, true) : createExcludedNamesFilter(exclude);
|
|
1483
1484
|
controller.signal.throwIfAborted();
|
|
1484
1485
|
const watcher = new FSWatcher({
|
|
1486
|
+
...(depth !== undefined && {
|
|
1487
|
+
depth
|
|
1488
|
+
}),
|
|
1485
1489
|
ignored,
|
|
1486
1490
|
ignoreInitial: true,
|
|
1487
1491
|
ignorePermissionErrors: false
|