From 4e0c8f8910b3f11b89db73882d830473339f8505 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Sun, 25 Oct 2020 22:48:35 -0700 Subject: [PATCH] fix: Use force for TS build. --- src/Project.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Project.ts b/src/Project.ts index 6e6951c75..6274be94e 100644 --- a/src/Project.ts +++ b/src/Project.ts @@ -32,7 +32,13 @@ export default class Project extends BaseProject { const args: string[] = []; if (this.isWorkspacesEnabled()) { - args.push('--build'); + args.push( + '--build', + // Since we collapse all DTS into a single file, + // we need to force build to overwrite the types, + // since they're not what the TS build expects. + '--force', + ); } else { args.push('--declaration', '--declarationMap', '--emitDeclarationOnly'); }