Module package_json

Source

Structs§

OptionPackageJson
This is a transparent value type wrapping Option<PackageJson>.
PackageJson
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.
PackageJsonIssue
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.