Skip to content

Commit

Permalink
fix: Use force for TS build.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Oct 26, 2020
1 parent d73722a commit 4e0c8f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 4e0c8f8

Please sign in to comment.