@vzn/vx 0.0.292 → 0.0.294

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.
@@ -15,15 +15,14 @@
15
15
  // with no prebuilt binary if the user happens to have Bun).
16
16
  // Anything else is a clear, actionable error.
17
17
 
18
- import { execFileSync, spawn, spawnSync } from 'node:child_process'
19
- import { existsSync, readFileSync } from 'node:fs'
20
- import { createRequire } from 'node:module'
21
- import { constants as osConstants } from 'node:os'
22
- import { dirname, join } from 'node:path'
23
- import { fileURLToPath } from 'node:url'
18
+ // CommonJS, not ESM: Node's ESM loader cost every `vx` call ~8 ms of a
19
+ // ~65 ms launch (min of 21, interleaved, Node 22, 2026-10-01).
20
+ const { execFileSync, spawn, spawnSync } = require('node:child_process')
21
+ const { existsSync, readFileSync } = require('node:fs')
22
+ const { constants: osConstants } = require('node:os')
23
+ const { dirname, join } = require('node:path')
24
24
 
25
- const require = createRequire(import.meta.url)
26
- const here = dirname(fileURLToPath(import.meta.url))
25
+ const here = __dirname
27
26
  const pkg = require('./package.json')
28
27
 
29
28
  // Derive the platform-package prefix + binary basename from this package's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.292",
3
+ "version": "0.0.294",
4
4
  "description": "A fast, correct task runner and build cache for JavaScript monorepos.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -11,16 +11,16 @@
11
11
  },
12
12
  "types": "./src/index.ts",
13
13
  "bin": {
14
- "vx": "./launcher.mjs"
14
+ "vx": "./launcher.cjs"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@vzn/vx-linux-x64": "0.0.292",
21
- "@vzn/vx-linux-arm64": "0.0.292",
22
- "@vzn/vx-darwin-x64": "0.0.292",
23
- "@vzn/vx-darwin-arm64": "0.0.292"
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"
24
24
  },
25
25
  "dependencies": {
26
26
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -28,7 +28,7 @@
28
28
  "files": [
29
29
  "index.ts",
30
30
  "src",
31
- "launcher.mjs",
31
+ "launcher.cjs",
32
32
  "README.md",
33
33
  "LICENSE"
34
34
  ],