fix: enable bun to do resolution as fallback to allow specifier

This commit is contained in:
Ruben Fiszel
2023-08-12 23:51:24 +02:00
parent 419d697bd9
commit 9c978281cd
+10 -2
View File
@@ -328,14 +328,22 @@ plugin(p)
"-r",
"/tmp/bun/loader.bun.ts",
"/tmp/bun/wrapper.ts",
"--no-install",
"-i",
"--prefer-offline",
])
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()?
} else {
let script_path = format!("{job_dir}/wrapper.ts");
let args = vec!["run", "-r", "./loader.bun.ts", &script_path, "--no-install"];
let args = vec![
"run",
"-r",
"./loader.bun.ts",
&script_path,
"-i",
"--prefer-offline",
];
Command::new(&*BUN_PATH)
.current_dir(job_dir)
.env_clear()