nest-cli
nest-cli copied to clipboard
Auto-Restart on nest-cli.json Changes
Is there an existing issue that is already proposing this?
- [x] I have searched the existing issues
Is your feature request related to a problem? Please describe it
Currently, when running nest start --watch, changes to nest-cli.json are not detected.
Describe the solution you'd like
When the CLI is running in watch mode , I’d like it to also watch the Nest CLI configuration file. When a configuration file changes: The current running process should automatically restart, so the new configuration is picked up without manual intervention.
Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
- When iterating on compilerOptions.assets, builder, plugins, or sourceRoot, expect the behavior to be similar to code changes in watch mode.
- Improves DX by keeping the configuration file in the same live-reload cycle as source files and assets.
to me this is too over as you're not supposed to change that CLI config file that often in a development workflow.