@vzn/vx 0.0.294 → 0.0.296

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.
Files changed (2) hide show
  1. package/launcher.cjs +11 -0
  2. package/package.json +5 -5
package/launcher.cjs CHANGED
@@ -102,6 +102,17 @@ const bin = platformBinary()
102
102
  // is available (a source checkout, or an unsupported platform + Bun installed).
103
103
  const source = join(here, sourceEntry)
104
104
  if (bin !== undefined) {
105
+ // Node >= 22.15 replaces this process with vx: no child to spawn, wait
106
+ // for and forward signals to, ~9 ms of a ~54 ms launch (min of 21,
107
+ // interleaved, Node 22.22, 2026-10-01). Older Node spawns.
108
+ if (typeof process.execve === 'function') {
109
+ try {
110
+ process.execve(bin, [bin, ...args], process.env)
111
+ } catch {
112
+ // A refusal (a binary execve cannot start) falls back to the spawn,
113
+ // which reports it.
114
+ }
115
+ }
105
116
  run(bin, args)
106
117
  } else if (existsSync(source) && hasBun()) {
107
118
  run('bun', ['--no-env-file', '--no-install', source, ...args])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.294",
3
+ "version": "0.0.296",
4
4
  "description": "A fast, correct task runner and build cache for JavaScript monorepos.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,10 +17,10 @@
17
17
  "node": ">=18"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@vzn/vx-linux-x64": "0.0.294",
21
- "@vzn/vx-linux-arm64": "0.0.294",
22
- "@vzn/vx-darwin-x64": "0.0.294",
23
- "@vzn/vx-darwin-arm64": "0.0.294"
20
+ "@vzn/vx-linux-x64": "0.0.296",
21
+ "@vzn/vx-linux-arm64": "0.0.296",
22
+ "@vzn/vx-darwin-x64": "0.0.296",
23
+ "@vzn/vx-darwin-arm64": "0.0.296"
24
24
  },
25
25
  "dependencies": {
26
26
  "@anthropic-ai/sandbox-runtime": "^0.0.76"