Skip to content

Commit

Permalink
Use "npm ci" to install cspell and respect package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljurek authored and azure-sdk committed Mar 2, 2023
1 parent 053c682 commit f93530a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eng/common/spelling/Invoke-Cspell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ created in the temp folder, package*.json files will be placed in that folder.
.PARAMETER LeavePackageInstallCache
If set the PackageInstallCache will not be deleted. Use if there are multiple
calls to Invoke-Cspell.ps1 to prevent creating multiple working directories and
redundant calls `npm install`.
redundant calls `npm ci`.
.PARAMETER Test
Run test functions against the script logic
Expand Down Expand Up @@ -167,9 +167,9 @@ $originalLocation = Get-Location

try {
Set-Location $PackageInstallCache
npm install npx | Out-Null
npm install cspell | Out-Null
npm install | Out-Null
npm ci npx | Out-Null
npm ci cspell | Out-Null
npm ci | Out-Null

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

0 comments on commit f93530a

Please sign in to comment.