diff --git a/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/.gitignore b/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/.gitignore index b0635246a55..8a33b835b7f 100644 --- a/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/.gitignore +++ b/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/.gitignore @@ -1,3 +1,4 @@ override.json package-lock.json -VSIXPackageVersion.json \ No newline at end of file +VSIXPackageVersion.json +LICENSE \ No newline at end of file diff --git a/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/build.ps1 b/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/build.ps1 index b9ee5c9a275..68e50151524 100644 --- a/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/build.ps1 +++ b/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/build.ps1 @@ -1,7 +1,7 @@ param ( [string]$OutputPath, [string]$Version = $null, - [bool]$IncludeTestPackage = $false + [switch]$IncludeTestPackage = $false ) # if version is not set, then run a script to get it @@ -22,7 +22,7 @@ if ($null -eq $PackageVersion) Write-Host "Using version $PackageVersion" # Write-Information "Building Report Publishing task" -Push-Location $PSScriptRoot/tasks/PublishAIEvaluationReport +Set-Location $PSScriptRoot/tasks/PublishAIEvaluationReport npm install --omit=dev # Copy task files to dist folder New-Item -ItemType Directory -Path ./dist -Force @@ -32,23 +32,26 @@ copy-item -Path ./package.json -Destination ./dist/ -Force copy-item -Path ./node_modules -Destination ./dist/node_modules -Force -Recurse # remove the test files from resolve package because they are currently breaking vsix signing (zero length) -remove-item -Path ./dist/node_modules/resolve/test -Recurse -Force +remove-item -Path ./dist/node_modules/resolve/test -Recurse -Force -ErrorAction SilentlyContinue @{ version = $PackageVersion - public = $true } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json - + public = $true } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json -Encoding ascii + # Write-Information "Building Extension Package" Set-Location $PSScriptRoot npm install npx tsc -b npx vite build + +# Copy LICENSE file from the root +copy-item -Path $PSScriptRoot/../../../../../LICENSE -Destination . -Force npx tfx-cli extension create --overrides-file $PSScriptRoot/override.json --output-path $OutputPath if ($true -eq $IncludeTestPackage) { @{ version = $PackageVersion id = "microsoft-extensions-ai-evaluation-report-test" - name = "[TEST] Azure DevOps AI Evaluation Report" } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json + name = "[TEST] Azure DevOps AI Evaluation Report" } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json -Encoding ascii # Build Preview version of the extension for testing npx tfx-cli extension create --overrides-file $PSScriptRoot/override.json --output-path $OutputPath diff --git a/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/vss-extension.json b/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/vss-extension.json index 66d56d77da8..48b88200efe 100644 --- a/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/vss-extension.json +++ b/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/vss-extension.json @@ -25,8 +25,26 @@ "content": { "details": { "path": "overview.md" + }, + "license": { + "path": "LICENSE" + } + }, + "links": { + "getstarted": { + "uri": "https://learn.microsoft.com/en-us/dotnet/ai/quickstarts/evaluate-ai-response" + }, + "learn": { + "uri": "https://learn.microsoft.com/en-us/dotnet/ai/conceptual/evaluation-libraries" + }, + "privacypolicy": { + "uri": "https://privacy.microsoft.com/en-us/privacystatement" } }, + "repository": { + "type": "git", + "uri": "https://github.com/dotnet/extensions" + }, "contributions": [ { "id": "build-results-html",