Skip to content

Commit 0d7c054

Browse files
Sync eng/common directory with azure-sdk-tools for PR 5595 (Azure#25064)
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#5595 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: Daniel Jurek <[email protected]>
1 parent c87817b commit 0d7c054

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

eng/common/spelling/Invoke-Cspell.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ created in the temp folder, package*.json files will be placed in that folder.
2525
.PARAMETER LeavePackageInstallCache
2626
If set the PackageInstallCache will not be deleted. Use if there are multiple
2727
calls to Invoke-Cspell.ps1 to prevent creating multiple working directories and
28-
redundant calls `npm install`.
28+
redundant calls `npm ci`.
2929
3030
.PARAMETER Test
3131
Run test functions against the script logic
@@ -167,9 +167,7 @@ $originalLocation = Get-Location
167167

168168
try {
169169
Set-Location $PackageInstallCache
170-
npm install npx | Out-Null
171-
npm install cspell | Out-Null
172-
npm install | Out-Null
170+
npm ci | Write-Host
173171

174172
# Use the mutated configuration file when calling cspell
175173
$command = "npx cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --relative"

0 commit comments

Comments
 (0)