nest build
ignores tsconfig.json
's exclude
option. e.g.: I want to exclude scripts
folder from compiling and this works with tsc
. But when I run nest build
, scripts
folder is also compiled and copied to dist
.
Inside tsconfig.json
:
"exclude": ["node_modules", "dist", "uploads", "static", "scripts"]
nest build
should obey tsconfig
excludes.
Nest version: 7.0.1
For Tooling issues:
- Node version: 13.7.0
- Platform: Linux 4.4
Others:
Yarn: 1.22.4
Please, provide a minimal repository which reproduces your issue.
From what I've reproduced, it works as expected.
// tsconfig.build.json
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "scripts", "test", "dist", "**/*spec.ts"]
}
Most helpful comment
Please, provide a minimal repository which reproduces your issue.
From what I've reproduced, it works as expected.