useserde_json::Error as SerdeError;usestd::io::Error as IoError;usethiserror::Error;/// The errors that this library can return.
#[derive(Debug, Error)]pubenumError{/// An error that happened during IO operations.
#[error("io error")]
Io(#[from] IoError),/// An error that happened during the parsing stage.
#[error("failed to parse package.json file")]
Parse(#[from] SerdeError),}