Description
Nitrogen logs fatal errors but still reports a successful process status in two cases:
- no
*.nitro.ts files are found, because process.exit() defaults to status 0;
- a spec-suffixed file contains no HybridObject or HybridView declaration, because only an error is logged.
This lets CI and build scripts treat an empty generation run as successful.
Expected behavior
Both cases should produce a nonzero exit status.
Description
Nitrogen logs fatal errors but still reports a successful process status in two cases:
*.nitro.tsfiles are found, becauseprocess.exit()defaults to status 0;This lets CI and build scripts treat an empty generation run as successful.
Expected behavior
Both cases should produce a nonzero exit status.