File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
7070fn 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 {
You can’t perform that action at this time.
0 commit comments