@@ -35,33 +35,33 @@ fn run_task(task: &Task) -> Result<(), Error> {
3535 deps:: check ( task) ?;
3636
3737 match ( & task. target , & task. action , & task. profile ) {
38- ( Target :: Web , Action :: Run , Profile :: Debug | Profile :: Default ) => run_in_frontend_dir ( "npm run start") ?,
39- ( Target :: Web , Action :: Run , Profile :: Release ) => run_in_frontend_dir ( "npm run production") ?,
40- ( Target :: Web , Action :: Run , Profile :: Profiling ) => run_in_frontend_dir ( "npm run profiling") ?,
38+ ( Target :: Web , Action :: Run , Profile :: Debug | Profile :: Default ) => npm_run_in_frontend_dir ( " start") ?,
39+ ( Target :: Web , Action :: Run , Profile :: Release ) => npm_run_in_frontend_dir ( " production") ?,
40+ ( Target :: Web , Action :: Run , Profile :: Profiling ) => npm_run_in_frontend_dir ( " profiling") ?,
4141
42- ( Target :: Web , Action :: Build , Profile :: Debug ) => run_in_frontend_dir ( "npm run build-dev") ?,
43- ( Target :: Web , Action :: Build , Profile :: Release | Profile :: Default ) => run_in_frontend_dir ( "npm run build") ?,
44- ( Target :: Web , Action :: Build , Profile :: Profiling ) => run_in_frontend_dir ( "npm run build-profiling") ?,
42+ ( Target :: Web , Action :: Build , Profile :: Debug ) => npm_run_in_frontend_dir ( " build-dev") ?,
43+ ( Target :: Web , Action :: Build , Profile :: Release | Profile :: Default ) => npm_run_in_frontend_dir ( " build") ?,
44+ ( Target :: Web , Action :: Build , Profile :: Profiling ) => npm_run_in_frontend_dir ( " build-profiling") ?,
4545
4646 ( Target :: Desktop , Action :: Run , Profile :: Debug | Profile :: Default ) => {
47- run_in_frontend_dir ( "npm run build-native-dev") ?;
47+ npm_run_in_frontend_dir ( " build-native-dev") ?;
4848 run ( "cargo run -p third-party-licenses --features desktop" ) ?;
4949 run ( "cargo run -p graphite-desktop-bundle -- open" ) ?;
5050 }
5151 ( Target :: Desktop , Action :: Run , Profile :: Release ) => {
52- run_in_frontend_dir ( "npm run build-native") ?;
52+ npm_run_in_frontend_dir ( " build-native") ?;
5353 run ( "cargo run -p third-party-licenses --features desktop" ) ?;
5454 run ( "cargo run -r -p graphite-desktop-bundle -- open" ) ?;
5555 }
5656 ( Target :: Desktop , Action :: Run , Profile :: Profiling ) => todo ! ( "profiling run for desktop" ) ,
5757
5858 ( Target :: Desktop , Action :: Build , Profile :: Debug ) => {
59- run_in_frontend_dir ( "npm run build-native-dev") ?;
59+ npm_run_in_frontend_dir ( " build-native-dev") ?;
6060 run ( "cargo run -p third-party-licenses --features desktop" ) ?;
6161 run ( "cargo run -p graphite-desktop-bundle" ) ?;
6262 }
6363 ( Target :: Desktop , Action :: Build , Profile :: Release | Profile :: Default ) => {
64- run_in_frontend_dir ( "npm run build-native") ?;
64+ npm_run_in_frontend_dir ( " build-native") ?;
6565 run ( "cargo run -p third-party-licenses --features desktop" ) ?;
6666 run ( "cargo run -r -p graphite-desktop-bundle" ) ?;
6767 }
0 commit comments