pub async fn run_root_hook(
project_dir: &Path,
modules_dir_name: &str,
manifest: &PackageJson,
hook: LifecycleHook,
) -> Result<bool, Error>Expand description
Run a lifecycle hook against the root package, if a script for it is
defined. Returns Ok(false) if the hook wasn’t defined (no-op),
Ok(true) if it ran successfully.
The caller is responsible for gating on --ignore-scripts.