Allow other tools calling prismic-ts-codegen to detect errors by returning non-zero exit code from the process when errors occur.
Types of changes
[ ] Chore (a non-breaking change which is related to package maintenance)
[ ] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
Description
The change signals a non-zero exit code (1) when prismic-ts-codegen execution end with an error.
Currently if the tool is used in an automated build process, there is no way to interrupt the build other than scanning stdout for errors.
Using a non-zero code is a standard practice allowing other tools to detect failure scenarios.
Checklist:
[ ] My change requires an update to the official documentation.
[ ] All TSDoc comments are up-to-date and new ones have been added where necessary.
Allow other tools calling prismic-ts-codegen to detect errors by returning non-zero exit code from the process when errors occur.
Types of changes
Description
The change signals a non-zero exit code (1) when prismic-ts-codegen execution end with an error. Currently if the tool is used in an automated build process, there is no way to interrupt the build other than scanning stdout for errors.
Using a non-zero code is a standard practice allowing other tools to detect failure scenarios.
Checklist: