From 62314da4c6b261859ba6b846ea7c9638719cd619 Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Fri, 10 Jan 2020 21:13:03 -0700 Subject: [PATCH] fix: Ignore configFilePath when reading TS options --- src/lib/utils/options/sources/typescript.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/options/sources/typescript.ts b/src/lib/utils/options/sources/typescript.ts index 483c1765b..8dc70e76e 100644 --- a/src/lib/utils/options/sources/typescript.ts +++ b/src/lib/utils/options/sources/typescript.ts @@ -17,7 +17,10 @@ const IGNORED_OPTIONS = [ 'inlineSources', 'removeComments', 'incremental', - 'tsBuildInfoFile' + 'tsBuildInfoFile', + // This is not a TS option, but TypeScript will add it to the compiler options + // so we need to remove it or TypeDoc will error since it isn't declared. + 'configFilePath' ] as const; /**