Open FFdhorkin opened 11 months ago
For composite projects, I suggest you to use incremental build instead of tsc-files
: https://www.typescriptlang.org/tsconfig/incremental.html
I only switched the project from a single project to composite this week, because one library required CommonJS. Compiling the original project w/ tsc & incremental is noticably slower than the tsc-files
version was :/ (we previously had incremental turned on, but I'm not sure whether tsc-files
actually does incremental)
I have a composite typescript project; according to the docs, you need to add
-b
/--build
to yourtsc
args in order to build this.However,
tsc-files
does not work with this flag.My root package.json has this:
which results in this error:
Originally, I had
tsc-files --noEmit
there, but that doesn't work with composite projects; it causes these type of errors:But it's not actually in the files list of the tsconfig.json, meaning that tsc-files is the origin of that error, too. Since the TS docs say composite requires you to have emit turned on, that's probably the issue there. (That said, removing --noEmit results in the same errors)