hammer_cli/
package_json.rs

1pub fn get_package_json(file_path: &str) -> serde_json::Value {
2    let file_data = std::fs::read_to_string(file_path).expect(
3        &format!("Could not read file {file_path}")
4    );
5    serde_json::from_str(&file_data).expect(
6        &format!("Could not parse json file {file_path}")
7    )
8}