diff --git a/backend/windmill-worker/src/bun_executor.rs b/backend/windmill-worker/src/bun_executor.rs index 31080b986f..e03140c6e8 100644 --- a/backend/windmill-worker/src/bun_executor.rs +++ b/backend/windmill-worker/src/bun_executor.rs @@ -242,6 +242,13 @@ pub async fn install_lockfile( .args(vec!["install"]) .stdout(Stdio::piped()) .stderr(Stdio::piped()); + if npm_mode { + let registry = NPM_CONFIG_REGISTRY.read().await.clone(); + if let Some(registry) = registry { + child_cmd.env("NPM_CONFIG_REGISTRY", registry); + } + } + let child_process = start_child_process(child_cmd, &*BUN_PATH).await?; gen_bunfig(job_dir).await?; diff --git a/cli/metadata.ts b/cli/metadata.ts index b2e968f57b..9644815a1c 100644 --- a/cli/metadata.ts +++ b/cli/metadata.ts @@ -80,6 +80,13 @@ export async function generateMetadataInternal( scriptPath, globalDeps ); + if (rawReqs) { + log.info( + colors.blue( + `Found raw requirements (package.json/requirements.txt) for ${scriptPath}, using it` + ) + ); + } const metadataWithType = await parseMetadataFile( remotePath, undefined,