MCPcopy Index your code
hub / github.com/AI45Lab/Code / node_script_command

Function node_script_command

core/src/verification.rs:389–397  ·  view source on GitHub ↗
(package_manager: &str, script: &str)

Source from the content-addressed store, hash-verified

387}
388
389fn node_script_command(package_manager: &str, script: &str) -> String {
390 match package_manager {
391 "pnpm" | "yarn" => format!("{package_manager} {script}"),
392 "bun" => format!("bun run {script}"),
393 "npm" if script == "test" => "npm test".to_string(),
394 "npm" => format!("npm run {script}"),
395 other => format!("{other} run {script}"),
396 }
397}
398
399fn file_contains(path: &Path, needle: &str) -> bool {
400 std::fs::read_to_string(path)

Callers 1

node_verification_presetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected