Skip to content

Normalize the package name for Doc.Ms readme#13453

Merged
sima-zhu merged 3 commits intoAzure:masterfrom
sima-zhu:normalize_package_name
Feb 2, 2021
Merged

Normalize the package name for Doc.Ms readme#13453
sima-zhu merged 3 commits intoAzure:masterfrom
sima-zhu:normalize_package_name

Conversation

@sima-zhu
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread eng/scripts/Language-Settings.ps1 Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please undo these formatting changes that move the brace.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My vs code insist helping me format JS code. :(

@sima-zhu sima-zhu force-pushed the normalize_package_name branch from add6ff4 to 938d4f4 Compare January 29, 2021 00:02
Comment thread eng/scripts/Language-Settings.ps1 Outdated
# Turn the package name start with `@azure/identity` to "identity".
function Normalize-javascript-Package-name ($PackageName)
{
return $PackageName -replace "@azure/" , ""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As I called out in your other PR lets try adding this as another property to the package properties so we don't have yet another small simple function that all languages have to implement.

@sima-zhu sima-zhu requested a review from weshaggard February 1, 2021 22:16
Comment thread eng/scripts/Language-Settings.ps1 Outdated
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
@sima-zhu sima-zhu merged commit 04c5a12 into Azure:master Feb 2, 2021
@sima-zhu sima-zhu deleted the normalize_package_name branch February 2, 2021 02:51
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.

2 participants