File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
crates/tauri-cli/src/helpers Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " tauri-cli " : patch:bug
3+ " @tauri-apps/cli " : patch:bug
4+ ---
5+
6+ Fixed the mismatched tauri package versions check didn't work for pnpm
Original file line number Diff line number Diff line change @@ -332,7 +332,14 @@ impl PackageManager {
332332 version : String ,
333333 }
334334
335- let json: ListOutput = serde_json:: from_str ( & stdout) . context ( "failed to parse npm list" ) ?;
335+ let json = if matches ! ( self , PackageManager :: Pnpm ) {
336+ serde_json:: from_str :: < Vec < ListOutput > > ( & stdout)
337+ . ok ( )
338+ . and_then ( |out| out. into_iter ( ) . next ( ) )
339+ . context ( "failed to parse pnpm list" ) ?
340+ } else {
341+ serde_json:: from_str :: < ListOutput > ( & stdout) . context ( "failed to parse npm list" ) ?
342+ } ;
336343 for ( package, dependency) in json. dependencies . into_iter ( ) . chain ( json. dev_dependencies ) {
337344 let version = dependency. version ;
338345 if let Ok ( version) = semver:: Version :: parse ( & version) {
You can’t perform that action at this time.
0 commit comments