| skipped 43 lines |
44 | 44 | | return; |
45 | 45 | | } |
46 | 46 | | |
| 47 | + | let remaining = args_to_string(&args.remaining); |
| 48 | + | |
47 | 49 | | // Run npm install if the script_name is "install" |
48 | 50 | | if args.script_name == "install" { |
49 | 51 | | let pm = install::guess_package_manager(&execute_dir); |
| skipped 4 lines |
54 | 56 | | } |
55 | 57 | | |
56 | 58 | | run_command( |
57 | | - | &[&pm.unwrap(), "install"], |
| 59 | + | &[&pm.unwrap(), "install", &remaining], |
58 | 60 | | &RunOptions { |
59 | 61 | | current_dir: execute_dir, |
60 | 62 | | envs: HashMap::new(), |
| skipped 10 lines |
71 | 73 | | .and_then(|script| script.as_str()) |
72 | 74 | | .map(|script| { |
73 | 75 | | println!("> {}", script); |
74 | | - | let remaining = args_to_string(&args.remaining); |
| 76 | + | |
75 | 77 | | let envs = |
76 | 78 | | HashMap::from([("PATH".to_string(), get_path_env(&bin_dir.to_str().unwrap()))]); |
77 | 79 | | |
| skipped 135 lines |