Is tsconfig.build.json still needed ?
DevDengChao opened this issue · 3 comments
tsconfig.build.json
is introduced in commit 1b81bde , and it seems like the author is testing something with it and forget to remove it later.
Dose it still needed in new project by default ?
I created a new project by nest new my-project
, and I found this file is not referenced anywhere, so I came here and created this issue.
tsconfig.build.json
is actually the config file used by the nest build
command and passed on to tsc
for compilation options. If you remove it, you'll notice the command doesn't work anymore
Thanks for your explaination.
you can merge it with tsconfig.json
(and change the build
npm-script to nest build -p tsconfig.json
) but then you will need to write another tsconfig to deal with .spec.ts
files (for development purposes).