isol8 0.4.0 → 0.4.1

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/dist/cli.js CHANGED
@@ -55293,7 +55293,7 @@ function getInstallCommand(runtime, packages) {
55293
55293
  case "python":
55294
55294
  return ["pip", "install", "--user", "--no-cache-dir", "--break-system-packages", ...packages];
55295
55295
  case "node":
55296
- return ["npm", "install", "-g", "--prefix=/sandbox/.npm-global", ...packages];
55296
+ return ["npm", "install", "--prefix", "/sandbox", ...packages];
55297
55297
  case "bun":
55298
55298
  return ["bun", "install", "-g", "--global-dir=/sandbox/.bun-global", ...packages];
55299
55299
  case "deno":
@@ -55316,6 +55316,10 @@ async function installPackages(container, runtime, packages) {
55316
55316
  env2.push("NPM_CONFIG_PREFIX=/sandbox/.npm-global");
55317
55317
  env2.push("NPM_CONFIG_CACHE=/sandbox/.npm-cache");
55318
55318
  env2.push("npm_config_cache=/sandbox/.npm-cache");
55319
+ } else if (runtime === "bun") {
55320
+ env2.push("BUN_INSTALL_GLOBAL_DIR=/sandbox/.bun-global");
55321
+ env2.push("BUN_INSTALL_CACHE_DIR=/sandbox/.bun-cache");
55322
+ env2.push("BUN_INSTALL_BIN=/sandbox/.bun-global/bin");
55319
55323
  } else if (runtime === "deno") {
55320
55324
  env2.push("DENO_DIR=/sandbox/.deno");
55321
55325
  }
@@ -61513,4 +61517,4 @@ if (!process.argv.slice(2).length) {
61513
61517
  }
61514
61518
  program2.parse();
61515
61519
 
61516
- //# debugId=D191C9C5DB033D7B64756E2164756E21
61520
+ //# debugId=AF05A942A56C65F664756E2164756E21