Skip to main content

set_pm_execpath

Function set_pm_execpath 

Source
pub fn set_pm_execpath(path: Option<PathBuf>)
Expand description

Register the npm-compatible executable exported as npm_execpath — what a lifecycle script re-invokes to reach this package manager (${npm_execpath} run build).

Unset (the default) names aube’s own binary when aube is the running program, and leaves npm_execpath unset under an embedder: the running executable is then the host’s, and its CLI is not aube’s. Pass a shim that re-enters aube to restore the variable there.