File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 5
5
<Configuration Condition =" '$(Configuration)' == ''" >Debug</Configuration >
6
6
<PackOnBuild >false</PackOnBuild >
7
7
</PropertyGroup >
8
+
9
+ <!-- Properties to control how we handle warnings when using the tasks provided by the Yarn MSBuild SDK -->
10
+ <PropertyGroup >
11
+ <IgnoreYarnWarnings >false</IgnoreYarnWarnings >
12
+ <IgnoreYarnWarnings Condition =" '$(ContinuousIntegrationBuild)' == 'true'" >true</IgnoreYarnWarnings >
13
+ </PropertyGroup >
8
14
</Project >
Original file line number Diff line number Diff line change 76
76
DependsOnTargets =" GetBuildInputCacheFile"
77
77
Inputs =" @(TSFiles);$(BaseIntermediateOutputPath)tsfiles.cache"
78
78
Outputs =" @(BuildOutputFiles)" >
79
- <Yarn Command =" $(NpmBuildArgs)" StandardOutputImportance =" High" StandardErrorImportance =" High" />
79
+ <Yarn Command =" $(NpmBuildArgs)" StandardOutputImportance =" High" StandardErrorImportance =" High" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
80
80
<WriteLinesToFile Overwrite =" true" File =" $(BaseIntermediateOutputPath)build-sentinel" />
81
81
</Target >
82
82
102
102
103
103
<Copy SourceFiles =" $(PackageJson)" DestinationFiles =" $(_BackupPackageJson)" />
104
104
105
- <Yarn Command =" version --no-git-tag-version --new-version $(PackageVersion)" />
105
+ <Yarn Command =" version --no-git-tag-version --new-version $(PackageVersion)" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
106
106
<Exec Command =" node " $(MSBuildThisFileDirectory)..\scripts\update-packagejson-links.js" " $(PackageJson)" $(PackageVersion)" />
107
- <Yarn Command =" pack --filename $(PackageFileName)" />
107
+ <Yarn Command =" pack --filename $(PackageFileName)" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
108
108
109
109
<Move SourceFiles =" $(_PackageTargetPath)" DestinationFolder =" $(PackageOutputPath)" />
110
110
<Message Importance =" High" Text =" $(MSBuildProjectName) -> $(_PackageTargetPath)" />
122
122
<Target Name =" Test" Condition =" '$(IsTestProject)' == 'true' AND '$(SkipTests)' != 'true'" >
123
123
<Telemetry EventName =" NETCORE_ENGINEERING_TELEMETRY" EventData =" Category=Test" />
124
124
<Message Importance =" High" Text =" Running npm tests for $(MSBuildProjectName)" />
125
- <Yarn Command =" $(NpmTestArgs)" StandardOutputImportance =" High" StandardErrorImportance =" High" />
125
+ <Yarn Command =" $(NpmTestArgs)" StandardOutputImportance =" High" StandardErrorImportance =" High" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
126
126
</Target >
127
127
128
128
</Project >
You can’t perform that action at this time.
0 commit comments