diff options
Diffstat (limited to 'tools/ts_library_builder/build_library.ts')
-rw-r--r-- | tools/ts_library_builder/build_library.ts | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tools/ts_library_builder/build_library.ts b/tools/ts_library_builder/build_library.ts index b0d438531..2045c288f 100644 --- a/tools/ts_library_builder/build_library.ts +++ b/tools/ts_library_builder/build_library.ts @@ -439,19 +439,21 @@ export function main({ // the outputProject will contain the final library file we are looking to // build + const outputProjectCompilerOptions: ts.CompilerOptions = { + baseUrl: buildPath, + lib: ["esnext"], + moduleResolution: ModuleResolutionKind.NodeJs, + strict: true, + target: ScriptTarget.ESNext + }; + const outputProject = new Project({ - compilerOptions: { - baseUrl: buildPath, - lib: ["esnext"], - moduleResolution: ModuleResolutionKind.NodeJs, - strict: true, - target: ScriptTarget.ESNext - }, + compilerOptions: outputProjectCompilerOptions, useVirtualFileSystem: true }); // There are files we need to load into memory, so that the project "compiles" - loadDtsFiles(outputProject); + loadDtsFiles(outputProject, outputProjectCompilerOptions); // libDts is the final output file we are looking to build and we are not // actually creating it, only in memory at this stage. |