Structs§
- Option
Package Json - This is a transparent value type wrapping
Option<PackageJson>
. - Package
Json - PackageJson wraps the parsed JSON content of a
package.json
file. The wrapper is necessary so that we can reference the FileJsonContent’s inner serde_json::Value without cloning it. - Package
Json Issue - Reusable Issue struct representing any problem with a
package.json
Functions§
- read_
package_ json - Reads a package.json file (if it exists). If the file is unparseable, it emits a useful Issue pointing to the invalid location.