@volter/twin-world 0.1.5 → 0.1.7

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/package.json +2 -2
  2. package/src/runtime.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/twin-world",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "World configs for twins: boot named local runtimes, allocate ports, generate world.env/instance.json, and run apps against fake-key twin worlds.",
5
5
  "keywords": [
6
6
  "twin",
@@ -59,7 +59,7 @@
59
59
  "bun": ">=1.2.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "@volter/twin": "^0.1.2"
62
+ "@volter/twin": "^0.1.3"
63
63
  },
64
64
  "dependencies": {
65
65
  "@electric-sql/pglite": "0.5.8",
package/src/runtime.ts CHANGED
@@ -2125,7 +2125,7 @@ function worldAttachedCommandEnv(name: string, root: string): { instance: Return
2125
2125
  if (sealed) throw new Error(`sealed world "${name}": attachment proxy failed; refusing to run the command (${error instanceof Error ? error.message : String(error)})`);
2126
2126
  // Keep env-only redirect if the ambient proxy cannot start.
2127
2127
  }
2128
- return { instance: status, env: { ...admittedEnv(stripEnvOf(status.env)), ...status.env, ...proxyEnv } };
2128
+ return { instance: status, env: { ...admittedEnv(stripEnvOf(status.env)), ...status.env, ...proxyEnv, VOLTER_WORLD: name } };
2129
2129
  }
2130
2130
 
2131
2131
  export function runWithWorldEnv(name: string, command: string[], root = process.cwd(), options: { cwd?: string } = {}): number {