Open nflaig opened 5 months ago
Alternative approach could be to pass nested ts-node
options directly, see https://typestrong.org/ts-node/docs/configuration/#via-tsconfigjson-recommended
@paulbrimicombe is this project sitll active? we can fork it if that's not the case, although I would like to avoid that
I noticed that the path to TypeScript config file (
--project
) is not forwarded to ts-node which causes it to load the defaulttsconfig.json
. (see CreateOptions.html#project)https://github.com/bbc/typescript-docs-verifier/blob/30a2d634b7cae88b68d8cbcbcb873b222ea3b732/src/SnippetCompiler.ts#L38
This does not affect most users as
compilerOptions
will be overriden but if the default tsconfig file containsts-node
directive then it will apply those.e.g.
And if
transpileOnly
is set totrue
it effectively disables typescript-docs-verifier.Confirmed locally, setting the project path resolves the issue