I read following documentation described nest
command.
https://docs.nestjs.com/cli/scripts
According to the document, following must be added to package.json
JavaScript
x
5
1
"build": "nest build",
2
"start": "nest start",
3
"start:dev": "nest start --watch",
4
"start:debug": "nest start --debug --watch",
5
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.