Skip to content

Commit 04fa5de

Browse files
committed
chore: use vite_shared::env_vars::NPM_CONFIG_REGISTRY
1 parent 047e58b commit 04fa5de

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/vite_setup/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ tokio = { workspace = true, features = ["full"] }
2020
tracing = { workspace = true }
2121
vite_install = { workspace = true }
2222
vite_path = { workspace = true }
23+
vite_shared = { workspace = true }
2324
vite_str = { workspace = true }
2425

2526
[target.'cfg(windows)'.dependencies]

crates/vite_setup/src/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ async fn run_vp_install(
329329
cmd.args(args).current_dir(version_dir).env("CI", "true");
330330

331331
if let Some(registry_url) = registry {
332-
cmd.env("npm_config_registry", registry_url);
332+
cmd.env(vite_shared::env_vars::NPM_CONFIG_REGISTRY, registry_url);
333333
}
334334

335335
let output = cmd.output().await?;

0 commit comments

Comments
 (0)