ID: I202512171512
Status: idea
Tags: CLI, NestJS, configuration
nest-cli.json
The nest-cli.json controls how the Nestjs CLI functions.
By default it will look something like this:
{
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true
}
}
The sourceRoot will manage where your generated components etc will go. for example, in Avans 2-1 LU3 we have set that to "sourceRoot": "src/modules"
References
I was making a NestJS app when my generated components were in the wrong root.