Skip to content

Commit

Permalink
[@typespec/http-specs] Add Installation Scripts to typespec repository (
Browse files Browse the repository at this point in the history
#5278)

This is one of the required steps to get the dashboards released. 

Please review and approve the PR. Thanks
  • Loading branch information
sarangan12 authored Dec 6, 2024
1 parent 234d686 commit 7afa566
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .chronus/changes/ReleaseDashboardsStep1-2024-11-5-14-40-39.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
changeKind: internal
packages:
- "@typespec/http-specs"
- "@typespec/spector"
---

Adding scripts to package.json
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
"test:e2e": "pnpm -r run test:e2e",
"update-latest-docs": "pnpm -r run update-latest-docs",
"watch": "tsc --build ./tsconfig.ws.json --watch",
"sync-labels": "tsx ./eng/common/scripts/labels/sync-labels.ts --config ./eng/common/config/labels.ts"
"sync-labels": "tsx ./eng/common/scripts/labels/sync-labels.ts --config ./eng/common/config/labels.ts",
"validate-scenarios": "pnpm -r --filter=@typespec/http-specs run validate-scenarios",
"validate-mock-apis": "pnpm -r --filter=@typespec/http-specs run validate-mock-apis",
"generate-scenarios-summary": "pnpm -r --filter=@typespec/http-specs run generate-scenarios-summary",
"upload-manifest": "pnpm -r --filter=@typespec/http-specs run upload-manifest"
},
"devDependencies": {
"@chronus/chronus": "^0.13.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/http-specs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @typespec/http-specs

## 0.1.0-alpha.3

- Create coverages container if not existing

## 0.1.0-alpha.2

- Minor `api-key` in the `authentication` specs
Expand Down
4 changes: 3 additions & 1 deletion packages/http-specs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typespec/http-specs",
"version": "0.1.0-alpha.2",
"version": "0.1.0-alpha.3",
"description": "Spec scenarios and mock apis",
"main": "dist/index.js",
"type": "module",
Expand All @@ -12,6 +12,8 @@
"validate-scenarios": "tsp-spector validate-scenarios ./specs",
"generate-scenarios-summary": "tsp-spector generate-scenarios-summary ./specs",
"regen-docs": "pnpm generate-scenarios-summary",
"upload-manifest": "tsp-spector upload-manifest ./specs --setName @typespec/http-specs --containerName manifests-typespec --storageAccountName typespec",
"upload-coverage": "tsp-spector upload-coverage --generatorName @typespec/http-specs --generatorVersion 0.1.0-alpha.3 --containerName coverages --generatorMode standard --storageAccountName typespec",
"validate-mock-apis": "tsp-spector validate-mock-apis ./specs",
"check-scenario-coverage": "tsp-spector check-coverage ./specs",
"validate-client-server": "concurrently \"tsp-spector server start ./specs\" \"npm run client\" && tsp-spector server stop",
Expand Down
1 change: 1 addition & 0 deletions packages/spector/src/actions/upload-coverage-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export async function uploadCoverageReport({
credential: new AzureCliCredential(),
containerName,
});
await client.createIfNotExists();
const generatorMetadata: GeneratorMetadata = {
name: generatorName,
version: generatorVersion,
Expand Down

0 comments on commit 7afa566

Please sign in to comment.