Skip to content

Commit 3dbbb29

Browse files
authored
Upgrade yarn and cleanup npm commands (#10054)
* Add yarn.lock file for NodeServices * Remove references to 'npm install' (causes double-download of node modules) and replace npm commands in package.json with yarn for consistency * Upgrade yarn to 1.15.2
1 parent e3bf01e commit 3dbbb29

File tree

13 files changed

+2997
-4273
lines changed

13 files changed

+2997
-4273
lines changed

build/tasks/RepoTasks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Remove="Internal.AspNetCore.Sdk" />
1515
<PackageReference Include="NuGet.Build.Tasks" Version="5.1.0-rtm.5921" />
1616
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="2.1.0" />
17-
<PackageReference Include="Yarn.MSBuild" Version="1.13.0" />
17+
<PackageReference Include="Yarn.MSBuild" Version="1.15.2" />
1818
</ItemGroup>
1919

2020
<ItemGroup Condition="'$(BuildInstallers)' == 'true' AND '$(TargetOsName)' == 'win'">

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "3.0.100-preview5-011568"
44
},
55
"msbuild-sdks": {
6-
"Yarn.MSBuild": "1.13.0",
6+
"Yarn.MSBuild": "1.15.2",
77
"Microsoft.DotNet.Helix.Sdk": "2.0.0-beta.19253.2"
88
}
99
}

src/Components/Browser.JS/Microsoft.AspNetCore.Components.Browser.JS.npmproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
Outputs="@(WebPackOutputs)">
2323
<RemoveDir Directories="dist" />
2424

25-
<Yarn Command="run build:debug" StandardOutputImportance="High" StandardErrorImportance="High" />
26-
<Yarn Command="run build:production" StandardOutputImportance="High" StandardErrorImportance="High" />
25+
<Yarn Command="run build:debug" />
26+
<Yarn Command="run build:production" />
2727
</Target>
2828

2929
</Project>

src/Middleware/CORS/test/FunctionalTests/CORS.FunctionalTests.npmproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.props))\Directory.Build.props" />
33

44
<!--
5-
This project file is present so the CI will run `npm install` on the package.json file.
5+
This project file is present so the CI will run `yarn install` on the package.json file.
66
The C# invokes node to start the tests.
77
-->
88

src/Middleware/NodeServices/src/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)