@vzn/vx 0.0.603 → 0.0.604
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.ts +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.604",
|
|
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.604",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.604",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.604",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.604"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/cli/watch.ts
CHANGED
|
@@ -432,6 +432,11 @@ async function runWatchLoop(args: WatchLoopArgs): Promise<void> {
|
|
|
432
432
|
try {
|
|
433
433
|
let label: string | undefined = first
|
|
434
434
|
while (label !== undefined && !stop.aborted) {
|
|
435
|
+
// A member came or went: armed before the run keys it, an edit in a
|
|
436
|
+
// new package while its first cycle runs queues like any other; armed
|
|
437
|
+
// only after, it fell in the gap and ran nothing (X-138). The re-read
|
|
438
|
+
// after the run stays, for what the run itself changed.
|
|
439
|
+
if (reread) await rearm(false)
|
|
435
440
|
process.stdout.write(`\nvx watch: ${label}; re-running...\n\n`)
|
|
436
441
|
try {
|
|
437
442
|
await held?.stop()
|
|
@@ -729,7 +734,7 @@ async function runWatchLoop(args: WatchLoopArgs): Promise<void> {
|
|
|
729
734
|
? 'vx watch: watching the workspace root (workspaceFiles inputs in use)'
|
|
730
735
|
: `vx watch: watching ${count} project(s)`
|
|
731
736
|
|
|
732
|
-
const rearm = async (): Promise<void> => {
|
|
737
|
+
const rearm = async (say = true): Promise<void> => {
|
|
733
738
|
let next: Rediscovered
|
|
734
739
|
try {
|
|
735
740
|
next = await args.rediscover()
|
|
@@ -778,7 +783,7 @@ async function runWatchLoop(args: WatchLoopArgs): Promise<void> {
|
|
|
778
783
|
// A new arm proves delivery like the first ones: an edit in the new
|
|
779
784
|
// package right after this cycle is seen, not lost in the gap.
|
|
780
785
|
await pool.proved()
|
|
781
|
-
process.stdout.write(`${watchingLine(next.projects.length)}\n`)
|
|
786
|
+
if (say) process.stdout.write(`${watchingLine(next.projects.length)}\n`)
|
|
782
787
|
}
|
|
783
788
|
|
|
784
789
|
armMode(projects)
|