File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,21 +6,21 @@ use std::process::Command;
66fn main ( ) {
77 let frontend_dir = PathBuf :: from ( "../frontend" ) ;
88 if frontend_dir. exists ( ) {
9- let pnpm = if cfg ! ( target_os = "windows" ) {
10- "pnpm .cmd"
9+ let npm = if cfg ! ( target_os = "windows" ) {
10+ "npm .cmd"
1111 } else {
12- "pnpm "
12+ "npm "
1313 } ;
14- let install_status = Command :: new ( pnpm )
14+ let install_status = Command :: new ( npm )
1515 . args ( [ "install" ] )
1616 . current_dir ( & frontend_dir)
1717 . status ( )
18- . expect ( "failed to run pnpm install" ) ;
18+ . expect ( "failed to run npm install" ) ;
1919 if !install_status. success ( ) {
20- panic ! ( "pnpm install failed" ) ;
20+ panic ! ( "npm install failed" ) ;
2121 }
2222
23- let status = Command :: new ( pnpm )
23+ let status = Command :: new ( npm )
2424 . args ( [ "run" , "build" ] )
2525 . current_dir ( & frontend_dir)
2626 . status ( )
You can’t perform that action at this time.
0 commit comments