Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f50edcb

Browse files
committed
Typo
1 parent ebcd97a commit f50edcb

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.changes/detect-package-manager-env.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"@tauri-apps/cli": patch:enhance
44
---
55

6-
Detect package manager from enviroment variable `npm_config_user_agent` first
6+
Detect package manager from environment variable `npm_config_user_agent` first

crates/tauri-cli/src/helpers/npm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ impl PackageManager {
7070
.unwrap_or(Self::Npm)
7171
}
7272

73-
/// Detects package manager from the `npm_config_user_agent` enviroment variable
74-
fn from_env_variable() -> Option<Self> {
73+
/// Detects package manager from the `npm_config_user_agent` environment variable
74+
fn from_environment_variable() -> Option<Self> {
7575
let npm_config_user_agent = std::env::var("npm_config_user_agent").ok()?;
7676
match npm_config_user_agent {
7777
user_agent if user_agent.starts_with("pnpm/") => Some(Self::Pnpm),
@@ -85,7 +85,7 @@ impl PackageManager {
8585

8686
/// Detects all possible package managers from the given directory.
8787
pub fn all_from_project<P: AsRef<Path>>(path: P) -> Vec<Self> {
88-
if let Some(from_env) = Self::from_env_variable() {
88+
if let Some(from_env) = Self::from_environment_variable() {
8989
return vec![from_env];
9090
}
9191

crates/tauri-macros/src/command/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl Parse for Handler {
6666
}
6767

6868
/// Try to get the plugin name by parsing the input for a `#![plugin(...)]` attribute,
69-
/// if it's not present, try getting it from `CARGO_PKG_NAME` enviroment variable
69+
/// if it's not present, try getting it from `CARGO_PKG_NAME` environment variable
7070
fn try_get_plugin_name(input: &ParseBuffer<'_>) -> Result<Option<String>, syn::Error> {
7171
if let Ok(attrs) = input.call(Attribute::parse_inner) {
7272
for attr in attrs {

0 commit comments

Comments
 (0)