pub fn write_package_lock( lock_path: &Path, package_json_path: &Path, tree: &HashMap<String, ResolvedPackage>, ) -> Result<(), String>
Write package-lock.json to the given path.