Skip to content

Commit ee83397

Browse files
committed
chore: use vite_shared::env_vars::NPM_CONFIG_REGISTRY
1 parent 85328fe commit ee83397

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
@@ -21,6 +21,7 @@ tracing = { workspace = true }
2121
vite_install = { workspace = true }
2222
vite_js_runtime = { workspace = true }
2323
vite_path = { workspace = true }
24+
vite_shared = { workspace = true }
2425
vite_str = { workspace = true }
2526

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

crates/vite_setup/src/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ async fn run_pnpm_install(
359359
.env("PATH", path);
360360

361361
if let Some(registry_url) = registry {
362-
cmd.env("npm_config_registry", registry_url);
362+
cmd.env(vite_shared::env_vars::NPM_CONFIG_REGISTRY, registry_url);
363363
}
364364

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

0 commit comments

Comments
 (0)