Skip to content

Commit

Permalink
[tsp-client] support unbranded emitters (#9632)
Browse files Browse the repository at this point in the history
* support unbranded emitters

* release prep

* update search string

* update changelog

* wording

---------

Co-authored-by: catalinaperalta <caperal@microsoft.com>
  • Loading branch information
catalinaperalta and cperaltah authored Jan 17, 2025
1 parent d3b34a0 commit 1cb6727
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions tools/tsp-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release

## 2025-01-17 - 0.15.3

- Add `generate-config-files` command to create `emitter-package.json` and `emitter-package-lock.json` files under the `<repo root>/eng` directory.
- Support emitters with names starting with `@typespec/http-` to generate client libraries.

## 2025-01-10 - 0.15.2

- Float `@autorest/openapi-to-typespec` version between `>=0.10.6 <1.0.0`.
Expand Down
4 changes: 2 additions & 2 deletions tools/tsp-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/tsp-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-client-generator-cli",
"version": "0.15.1",
"version": "0.15.3",
"description": "A tool to generate Azure SDKs from TypeSpec",
"main": "dist/index.js",
"homepage": "https://github.com/Azure/azure-sdk-tools/tree/main/tools/tsp-client#readme",
Expand Down
2 changes: 1 addition & 1 deletion tools/tsp-client/src/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function getEmitterFromRepoConfig(emitterPath: string): Promise<str
if (!obj || !obj.dependencies) {
throw new Error("Invalid emitter-package.json");
}
const languages: string[] = ["@azure-tools/typespec-", "@typespec/openapi3"];
const languages: string[] = ["@azure-tools/typespec-", "@typespec/http-", "@typespec/openapi3"];
for (const lang of languages) {
const emitter = Object.keys(obj.dependencies).find((dep: string) => dep.startsWith(lang));
if (emitter) {
Expand Down

0 comments on commit 1cb6727

Please sign in to comment.