Skip to content

Conversation

@skywing918
Copy link
Contributor

@skywing918 skywing918 commented Dec 5, 2025

Azure/azure-sdk-tools#13215
Remove unnecessary '--no' flag from npm exec commands in update scripts

Packages impacted by this PR

Issues associated with this PR

Describe the problem that is addressed by this PR

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes argument parsing errors in PowerShell automation scripts by removing an invalid --no flag from npm exec commands that was breaking command execution.

Key Changes

  • Corrected npm exec command syntax in update-version.ps1 by removing the invalid --no flag
  • Applied the same fix to update-changelog-content.ps1 for consistency

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
eng/scripts/update-version.ps1 Fixed npm exec command syntax by removing invalid --no flag before the command separator --
eng/scripts/update-changelog-content.ps1 Fixed npm exec command syntax by removing invalid --no flag before the command separator --

Write-Host "Updating CHANGELOG.md..." -ForegroundColor Cyan
Write-Host ""
$command = "npm --prefix $releaseToolsPath exec --no -- update-changelog -- --sdkRepoPath `"$SdkRepoPath`" --packagePath `"$PackagePath`""
$command = "npm --prefix $releaseToolsPath exec update-changelog -- --sdkRepoPath `"$SdkRepoPath`" --packagePath `"$PackagePath`""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the impact for this argument? why I didn't meet any issue during my local verification?

@skywing918 skywing918 closed this Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants