Skip to content

Commit

Permalink
[TypeSpec] Remove "./" from tspconfig.yaml (Azure#24199)
Browse files Browse the repository at this point in the history
- Prefix is unnecessary and clutters config
  • Loading branch information
mikeharder authored and harryli0108 committed Jul 28, 2023
1 parent b6e671d commit 838efc6
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ emit: [
]
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "./data-plane"
examples-directory: ./examples
azure-resource-provider-folder: "data-plane"
examples-directory: examples
omit-unreachable-types: true
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
emitter-output-dir: "{project-root}/../"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ options:
emitter-output-dir: "{project-root}/../"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/contentsafety.json"
azure-resource-provider-folder: "data-plane"
examples-directory: ./examples
examples-directory: examples
"@azure-tools/typespec-python":
package-name: "azure-ai-contentsafety"
emitter-output-dir: "{python-sdk-folder}/sdk/{service-directory-name}/{package-name}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ emit: [

options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "./data-plane"
azure-resource-provider-folder: "data-plane"
emitter-output-dir: "{project-root}/../.."
output-file: "{azure-resource-provider-folder}/HealthInsights/{version-status}/{version}/openapi.json"
examples-directory: "./examples"
examples-directory: "examples"
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "./data-plane"
azure-resource-provider-folder: "data-plane"
emitter-output-dir: "{project-root}/.."
examples-directory: "./examples"
examples-directory: "examples"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/widgets.json"
"@azure-tools/typespec-python":
emitter-output-dir: "{python-sdk-folder}/sdk/{service-directory-name}/{package-name}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ emit: [
]
options:
"@azure-tools/typespec-autorest":
examples-directory: ./examples
examples-directory: examples
omit-unreachable-types: true
output-file: EventGrid.json
emitter-output-dir: "{project-root}/../data-plane/Microsoft.EventGrid/preview/2023-06-01-preview"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "./resource-manager"
azure-resource-provider-folder: "resource-manager"
emitter-output-dir: "{project-root}/.."
examples-directory: "./examples"
examples-directory: "examples"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/TrafficController.json"
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "./data-plane"
azure-resource-provider-folder: "data-plane"
emitter-output-dir: "{project-root}/.."
examples-directory: "./examples"
examples-directory: "examples"
output-file: "{azure-resource-provider-folder}/Azure.AI.TextTranslation/stable/v3.0/openapi.json"
"@azure-tools/typespec-csharp":
clear-output-folder: true
Expand Down

0 comments on commit 838efc6

Please sign in to comment.