Read and validate a component's config file.
Component name, used in error messages.
Zod schema for the parts of the file the caller reads.
Config file. Default: componentConfigPath.
The parsed config, or undefined when the file does not exist.
undefined
When the file is not JSON or does not match schema.
schema
Read and validate a component's config file.