I read following documentation described nest
command.
https://docs.nestjs.com/cli/scripts
According to the document, following must be added to package.json
"build": "nest build", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch",
What are the --watch
and --debug
options?
Advertisement
Answer
In general, --watch
means the terminal will stay open and watch for any file changes and then reload the server. --debug
means it will log more messages to the console (e.g. info or warnings), which can be helpful for debugging.