You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error TS6369: Option '--build' must be the first command line argument.
Originally, I had tsc-files --noEmit there, but that doesn't work with composite projects; it causes these type of errors:
error TS6305: Output file '/repo/path/dist/foo.d.ts' has not been built from source file '/repo/path/src/foo.ts'.
The file is in the program because:
Part of 'files' list in tsconfig.json
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: