summaryrefslogtreecommitdiff
path: root/tools/ts_library_builder/build_library.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-04-02 03:47:25 +1100
committerRyan Dahl <ry@tinyclouds.org>2019-04-01 12:47:25 -0400
commitada5ffa610d2b5400b612917b35d91b98bee2309 (patch)
tree423ba7874b39ffd8f809468d3d81311ecebef089 /tools/ts_library_builder/build_library.ts
parentc855d0edd2ef5098b806ac6368eb7b0a85d0d0c9 (diff)
Upgrade to TypeScript 3.4.1 (#2027)
Diffstat (limited to 'tools/ts_library_builder/build_library.ts')
-rw-r--r--tools/ts_library_builder/build_library.ts18
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.