Skip to content

Commit 2bdc6fe

Browse files
committed
move from global to local build
1 parent 7aba3b3 commit 2bdc6fe

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.azure-pipelines/common-templates/install-tools.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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" }

tools/GenerateModules.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ if (-not (Test-Path $ModuleMappingPath)) {
4848

4949
# Build AutoREST.PowerShell submodule.
5050
Set-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.
5555
Write-Host "--- Autorest/npm diagnostics ---"

0 commit comments

Comments
 (0)