@vzn/vx 0.0.175 → 0.0.177
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/workspace/config-eval.ts +12 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.177",
|
|
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.
|
|
21
|
-
"@vzn/vx-linux-arm64": "0.0.
|
|
22
|
-
"@vzn/vx-darwin-x64": "0.0.
|
|
23
|
-
"@vzn/vx-darwin-arm64": "0.0.
|
|
20
|
+
"@vzn/vx-linux-x64": "0.0.177",
|
|
21
|
+
"@vzn/vx-linux-arm64": "0.0.177",
|
|
22
|
+
"@vzn/vx-darwin-x64": "0.0.177",
|
|
23
|
+
"@vzn/vx-darwin-arm64": "0.0.177"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
|
@@ -42,7 +42,17 @@ import { nonJsonMessage, nonJsonPaths, type NonJsonValue } from './json-data.js'
|
|
|
42
42
|
const WORKER_SRC = `
|
|
43
43
|
const nonJsonPaths = ${nonJsonPaths.toString()}
|
|
44
44
|
self.onmessage = async (e) => {
|
|
45
|
-
const { id, path } = e.data
|
|
45
|
+
const { id, path, env } = e.data
|
|
46
|
+
// A Worker starts with the process's STARTUP environment, not the
|
|
47
|
+
// parent's process.env as written since (probed): a config reading an
|
|
48
|
+
// env var set in-process evaluated with it on the first load and without
|
|
49
|
+
// it on every later one, and an embedder's second run() derived a
|
|
50
|
+
// different key (D-61). Each request carries the parent's env now.
|
|
51
|
+
// Through globalThis: the playground bundles this source as a string, and
|
|
52
|
+
// its free-global scan reads a bare process after a paren as code.
|
|
53
|
+
const live = globalThis.process.env
|
|
54
|
+
for (const k of Object.keys(live)) if (!(k in env)) delete live[k]
|
|
55
|
+
Object.assign(live, env)
|
|
46
56
|
try {
|
|
47
57
|
const ns = await import(path)
|
|
48
58
|
// Awaited as the in-process load's async return flattens it: a Promise
|
|
@@ -238,7 +248,7 @@ export async function evaluateConfigFresh(configPath: string): Promise<unknown>
|
|
|
238
248
|
}
|
|
239
249
|
}, budget)
|
|
240
250
|
timer.unref?.()
|
|
241
|
-
w.postMessage({ id, path: abs })
|
|
251
|
+
w.postMessage({ id, path: abs, env: { ...process.env } })
|
|
242
252
|
})
|
|
243
253
|
const [nonJson] = reply.nonJson
|
|
244
254
|
if (nonJson !== undefined) throw new UserError(nonJsonMessage(configPath, nonJson))
|