run_workspace_script

Function run_workspace_script 

Source
pub fn run_workspace_script(
    runner: Runner,
    workspace: &str,
    script: &Script,
    args: Option<&str>,
    project_dir: &Path,
    dry_run: bool,
) -> Result<i32>
Expand description

Run a workspace script.

§Arguments

  • runner - The package manager to use
  • workspace - The workspace name (package name)
  • script - The script to run
  • args - Optional additional arguments to pass to the script
  • project_dir - The project directory (monorepo root) to run in
  • dry_run - If true, print the command without executing

§Returns

Returns the exit code of the script (0 for success, non-zero for failure).