Skip to main content

analyze_scripts

Function analyze_scripts 

Source
pub fn analyze_scripts(
    scripts: &HashMap<String, String>,
    root: &Path,
) -> ScriptAnalysis
Expand description

Analyze all scripts from a package.json scripts field.

For each script value, parses shell commands, extracts binary names (mapped to package names), --config file paths, and positional file path arguments.