@vzn/vx 0.0.439 → 0.0.440
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/package.json +5 -5
- package/src/cli/watch-fs.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.440",
|
|
4
4
|
"description": "The fastest task runner and build cache for JavaScript monorepos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@vzn/vx-linux-x64": "0.0.
|
|
25
|
-
"@vzn/vx-linux-arm64": "0.0.
|
|
26
|
-
"@vzn/vx-darwin-x64": "0.0.
|
|
27
|
-
"@vzn/vx-darwin-arm64": "0.0.
|
|
24
|
+
"@vzn/vx-linux-x64": "0.0.440",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.440",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.440",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.440"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/cli/watch-fs.ts
CHANGED
|
@@ -241,6 +241,10 @@ function treeWatcher(root: string, listener: (filename: string) => void): WatchH
|
|
|
241
241
|
let armed = false
|
|
242
242
|
let warned = false
|
|
243
243
|
const drop = (rel: string): void => {
|
|
244
|
+
// A directory is watched before anything under it, so a path with no
|
|
245
|
+
// watch of its own has none below: a deleted file costs one lookup,
|
|
246
|
+
// not a walk of every watch (an `rm -rf` of 10,000 files).
|
|
247
|
+
if (!watchers.has(rel)) return
|
|
244
248
|
for (const [key, w] of watchers) {
|
|
245
249
|
if (key !== rel && !key.startsWith(rel + '/')) continue
|
|
246
250
|
w.close()
|