You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52,8 +71,14 @@ foreach ($file in $apiListingFiles) {
52
71
53
72
if ($SpellCheckPublicApiSurface) {
54
73
Write-Host"Spell check public API surface"
55
-
&"$PSScriptRoot/spell-check-public-api.ps1"`
56
-
-ServiceDirectory $ServiceDirectory
74
+
75
+
if ($PSCmdlet.ParameterSetName-eq'PackagePath') {
76
+
&"$PSScriptRoot/spell-check-public-api.ps1"`
77
+
-RelativePackagePath $relativePackagePath
78
+
} else {
79
+
&"$PSScriptRoot/spell-check-public-api.ps1"`
80
+
-ServiceDirectory $relativePackagePath
81
+
}
57
82
58
83
if ($LASTEXITCODE) {
59
84
Write-Host"##vso[task.LogIssue type=error;]Spelling errors detected. To correct false positives or learn about spell checking see: https://aka.ms/azsdk/engsys/spellcheck"
0 commit comments