Since v6.5.0
passing compilerOptions to tsoa.json will throw an exception in ts.createProgram
#1727
Open
2 of 4 tasks
Since
v6.5.0
passing compilerOptions in tsoa.json is raising an error when using ANY cli fn:I isolate the
v6.5.0
since I tried the same code in v6.4.0 and it still works.Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
Running
yarn add @tsoa/cli@6.4.0
and thenyarn tsoa spec-and-routes
produces:Node Version 20 and 22 (tried both)
tsoa.json
Current Behavior
Running
yarn add @tsoa/cli@6.5.0
and thenyarn tsoa spec-and-routes
produces:Possible Solution
I tried monkeypatching the code in MetadataGenerator.setProgramToDynamicControllersFiles to parse the
this.compilerOptions
with parseJsonSourceFileConfigFileContent before sending to createProgram and its working!Steps to Reproduce
Context (Environment)
Version of the library: v6.5.0
Version of NodeJS: 22 or 20
Breaking change?
It's only happening since v6.5.0
The text was updated successfully, but these errors were encountered: