File tree Expand file tree Collapse file tree
.azure-pipelines/common-templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,14 +66,14 @@ steps:
6666 inputs :
6767 command : custom
6868 workingDir : $(Build.SourcesDirectory)
69- customCommand : install -g autorest@3.7.2
69+ customCommand : install autorest@3.7.2
7070
7171 - task : Npm@1
7272 displayName : Install AutorestCore
7373 inputs :
7474 command : custom
7575 workingDir : $(Build.SourcesDirectory)
76- customCommand : install -g @autorest/core@3.10.4
76+ customCommand : install @autorest/core@3.10.4
7777
7878 - task : PowerShell@2
7979 displayName : Pre-populate autorest extension cache
@@ -111,7 +111,7 @@ steps:
111111 inputs :
112112 command : custom
113113 workingDir : $(Build.SourcesDirectory)
114- customCommand : install -g @microsoft/rush
114+ customCommand : install @microsoft/rush
115115
116116 - task : PowerShell@2
117117 displayName : Rush Build
@@ -120,9 +120,9 @@ steps:
120120 pwsh : true
121121 workingDirectory : " autorest.powershell"
122122 script : |
123- rush install
123+ npx rush install
124124 if ($LASTEXITCODE -ne 0) { throw "rush install failed with exit code $LASTEXITCODE" }
125- rush link
125+ npx rush link
126126 if ($LASTEXITCODE -ne 0) { throw "rush link failed with exit code $LASTEXITCODE" }
127- rush rebuild
127+ npx rush rebuild
128128 if ($LASTEXITCODE -ne 0) { throw "rush rebuild failed with exit code $LASTEXITCODE" }
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ if (-not (Test-Path $ModuleMappingPath)) {
4848
4949# Build AutoREST.PowerShell submodule.
5050Set-Location (Join-Path $ScriptRoot " ../autorest.powershell" )
51- rush install
52- rush build
51+ npx rush install
52+ npx rush build
5353
5454# Diagnostic: show autorest cache state and npm registry config before generation.
5555Write-Host " --- Autorest/npm diagnostics ---"
You can’t perform that action at this time.
0 commit comments