File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
pipelines/templates/steps Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
- task : NodeTool@0
19
19
condition : and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
20
20
inputs :
21
- versionSpec : 16 .x
22
- displayName : Use Node.js 16 .x
21
+ versionSpec : 18 .x
22
+ displayName : Use Node.js 18 .x
23
23
24
24
- task : PowerShell@2
25
25
displayName : Check spelling (cspell)
Original file line number Diff line number Diff line change @@ -167,10 +167,12 @@ $originalLocation = Get-Location
167
167
168
168
try {
169
169
Set-Location $PackageInstallCache
170
+ npm install npx | Out-Null
171
+ npm install cspell | Out-Null
170
172
npm install | Out-Null
171
173
172
174
# Use the mutated configuration file when calling cspell
173
- $command = " npx --no-install cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --relative"
175
+ $command = " npx cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --relative"
174
176
Write-Host $command
175
177
$cspellOutput = npx `
176
178
-- no- install `
You can’t perform that action at this time.
0 commit comments