typescript-rest-swagger icon indicating copy to clipboard operation
typescript-rest-swagger copied to clipboard

Use tsconfig.json compilerOptions

Open vellengs opened this issue 8 years ago • 3 comments

support for project's tsconfig.json

vellengs avatar Nov 10 '17 06:11 vellengs

Good start. I think this needs a couple things before a merge though:

  • (Optional) Add a configuration option tsConfigFile to override the default location of the tsconfig.json file
  • Handle the case where require throws an error because tsconfig.json doesn't exists where you're looking for it and fallback to using empty config
  • Handle the case where tsconfig.compilerOptions is undefined and fallback to using empty config
  • Fix linting error ERROR: src/metadata/metadataGenerator.ts[14, 68]: trailing whitespace

ngraef avatar Nov 10 '17 14:11 ngraef

@ngraef It's good strict for that; I have a suggestion. why not move to configurable swagger.config then user make the decision.

vellengs avatar Nov 10 '17 23:11 vellengs

@vellengs any movement on this one?

tnrich avatar Feb 21 '20 00:02 tnrich