@jsenv/core 38.2.2 → 38.2.3
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/jsenv_core.js +1 -22
- package/package.json +3 -3
package/dist/jsenv_core.js
CHANGED
|
@@ -2543,9 +2543,7 @@ callback: ${callback}`);
|
|
|
2543
2543
|
return { registerCleanupCallback, cleanup };
|
|
2544
2544
|
};
|
|
2545
2545
|
|
|
2546
|
-
const
|
|
2547
|
-
// linux does not support recursive option
|
|
2548
|
-
const fsWatchSupportsRecursive = !isLinux;
|
|
2546
|
+
const fsWatchSupportsRecursive = true;
|
|
2549
2547
|
|
|
2550
2548
|
const registerDirectoryLifecycle = (
|
|
2551
2549
|
source,
|
|
@@ -2781,25 +2779,6 @@ const registerDirectoryLifecycle = (
|
|
|
2781
2779
|
handleEntryFound(childEntryInfo, { notify });
|
|
2782
2780
|
}
|
|
2783
2781
|
});
|
|
2784
|
-
// we must watch manually every directory we find
|
|
2785
|
-
if (!fsWatchSupportsRecursive) {
|
|
2786
|
-
const watcher = createWatcher(urlToFileSystemPath(entryInfo.url), {
|
|
2787
|
-
persistent: keepProcessAlive,
|
|
2788
|
-
});
|
|
2789
|
-
tracker.registerCleanupCallback(() => {
|
|
2790
|
-
watcher.close();
|
|
2791
|
-
});
|
|
2792
|
-
watcher.on("change", (eventType, filename) => {
|
|
2793
|
-
handleDirectoryEvent({
|
|
2794
|
-
directoryRelativeUrl: entryInfo.relativeUrl,
|
|
2795
|
-
filename: filename
|
|
2796
|
-
? // replace back slashes with slashes
|
|
2797
|
-
filename.replace(/\\/g, "/")
|
|
2798
|
-
: "",
|
|
2799
|
-
eventType,
|
|
2800
|
-
});
|
|
2801
|
-
});
|
|
2802
|
-
}
|
|
2803
2782
|
}
|
|
2804
2783
|
if (added && entryInfo.patternValue && notify) {
|
|
2805
2784
|
added({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "38.2.
|
|
3
|
+
"version": "38.2.3",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"url": "https://github.com/jsenv/core"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
16
|
+
"node": ">=20.8.0"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@financial-times/polyfill-useragent-normaliser": "1.10.2",
|
|
63
63
|
"@jsenv/abort": "4.2.4",
|
|
64
64
|
"@jsenv/ast": "5.1.4",
|
|
65
|
-
"@jsenv/filesystem": "4.
|
|
65
|
+
"@jsenv/filesystem": "4.3.0",
|
|
66
66
|
"@jsenv/importmap": "1.2.1",
|
|
67
67
|
"@jsenv/integrity": "0.0.1",
|
|
68
68
|
"@jsenv/log": "3.4.0",
|