Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize the package name for Doc.Ms readme #13453

Merged
merged 3 commits into from
Feb 2, 2021

Conversation

sima-zhu
Copy link
Contributor

No description provided.

@@ -6,30 +6,24 @@ $packagePattern = "*.tgz"
$MetadataUri = "https://raw.githubusercontent.com/Azure/azure-sdk/master/_data/releases/latest/js-packages.csv"
$BlobStorageUrl = "https://azuresdkdocs.blob.core.windows.net/%24web?restype=container&comp=list&prefix=javascript%2F&delimiter=%2F"

function Get-javascript-PackageInfoFromRepo ($pkgPath, $serviceDirectory, $pkgName)
{
function Get-javascript-PackageInfoFromRepo ($pkgPath, $serviceDirectory, $pkgName) {
Copy link
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
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. :(

# Turn the package name start with `@azure/identity` to "identity".
function Normalize-javascript-Package-name ($PackageName)
{
return $PackageName -replace "@azure/" , ""
Copy link
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.

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
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this pull request Mar 16, 2021
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