nest-cli
nest-cli copied to clipboard
feat(): validate configuration after loaded
PR Checklist
Please check if your PR fulfills the following requirements:
- [x] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
- [x] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
PR Type
What kind of change does this PR introduce?
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:
What is the current behavior?
Currently, cli will not validate nest-cli.json
after load it. Developer may not find out his configuration wrong immediately. This PR can increase the development experience.
Issue Number: #692
What is the new behavior?
Validate nest-cli.json
after load it. Prevent unexpected fields.
Does this PR introduce a breaking change?
[ ] Yes
[x] No
Other information
It may introduce break changes if those nest-cli.json
s are not standard.