Skip to content

Commit

Permalink
Merge pull request #3166 from iclanton/fix-warningsInSuccessfulBuild
Browse files Browse the repository at this point in the history
Fix the "allowWarningsInSuccessfulBuild" option in command-line.json
  • Loading branch information
iclanton authored Jan 18, 2022
2 parents d84c03b + 1469c4c commit 4ba7374
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 1 addition & 4 deletions apps/rush-lib/src/logic/taskExecution/ProjectTaskRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export interface IProjectTaskRunnerOptions {
commandToRun: string;
isIncrementalBuildAllowed: boolean;
projectChangeAnalyzer: ProjectChangeAnalyzer;
allowWarningsInSuccessfulBuild?: boolean;
taskName: string;
phase: IPhase;
}
Expand Down Expand Up @@ -114,9 +113,7 @@ export class ProjectTaskRunner extends BaseTaskRunner {
this._projectChangeAnalyzer = options.projectChangeAnalyzer;
this._packageDepsFilename = `package-deps_${phase.logFilenameIdentifier}.json`;
this.warningsAreAllowed =
EnvironmentConfiguration.allowWarningsInSuccessfulBuild ||
options.allowWarningsInSuccessfulBuild ||
false;
EnvironmentConfiguration.allowWarningsInSuccessfulBuild || phase.allowWarningsOnSuccess || false;
this._logFilenameIdentifier = phase.logFilenameIdentifier;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Fix the \"allowWarningsInSuccessfulBuild\" option in bulk commands defined in common/config/command-line.json.",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}

0 comments on commit 4ba7374

Please sign in to comment.