From 741e5fb69520e8d686a726e16209417a16eeb0d8 Mon Sep 17 00:00:00 2001 From: jolov Date: Wed, 27 May 2026 18:54:41 -0700 Subject: [PATCH 1/2] fix(http-client-csharp): declare @azure-tools/typespec-azure-core as peer dependency The emitter imports from @azure-tools/typespec-azure-core at runtime but previously relied on npm's flat hoisting. Under pnpm (especially with enableGlobalVirtualStore: true) and other strict resolvers the import fails. Declare it as a peerDependency alongside typespec-client-generator-core. Fixes #10802 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../fix-csharp-azure-core-peer-dep-2026-5-27-18-53-25.md | 7 +++++++ packages/http-client-csharp/package.json | 1 + 2 files changed, 8 insertions(+) create mode 100644 .chronus/changes/fix-csharp-azure-core-peer-dep-2026-5-27-18-53-25.md diff --git a/.chronus/changes/fix-csharp-azure-core-peer-dep-2026-5-27-18-53-25.md b/.chronus/changes/fix-csharp-azure-core-peer-dep-2026-5-27-18-53-25.md new file mode 100644 index 00000000000..6a2e2aeda40 --- /dev/null +++ b/.chronus/changes/fix-csharp-azure-core-peer-dep-2026-5-27-18-53-25.md @@ -0,0 +1,7 @@ +--- +changeKind: fix +packages: + - "@typespec/http-client-csharp" +--- + +Declare `@azure-tools/typespec-azure-core` as a peer dependency. The emitter imports from this package at runtime but previously relied on npm's flat hoisting to resolve it, which caused failures under pnpm (with `enableGlobalVirtualStore: true`) and other strict resolvers. diff --git a/packages/http-client-csharp/package.json b/packages/http-client-csharp/package.json index c55f14b9a42..f5c37c5cb73 100644 --- a/packages/http-client-csharp/package.json +++ b/packages/http-client-csharp/package.json @@ -57,6 +57,7 @@ "emitter/lib/*.tsp" ], "peerDependencies": { + "@azure-tools/typespec-azure-core": ">=0.67.1 <0.68.0 || ~0.68.0-0", "@azure-tools/typespec-client-generator-core": ">=0.67.4 <0.68.0 || ~0.68.0-0", "@typespec/compiler": "^1.11.0", "@typespec/http": "^1.11.0", From 2c9ad4420ffb28eb8be0f2e8e7f6a7769f41a511 Mon Sep 17 00:00:00 2001 From: jolov Date: Wed, 27 May 2026 18:55:32 -0700 Subject: [PATCH 2/2] Remove changelog entry Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../fix-csharp-azure-core-peer-dep-2026-5-27-18-53-25.md | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .chronus/changes/fix-csharp-azure-core-peer-dep-2026-5-27-18-53-25.md diff --git a/.chronus/changes/fix-csharp-azure-core-peer-dep-2026-5-27-18-53-25.md b/.chronus/changes/fix-csharp-azure-core-peer-dep-2026-5-27-18-53-25.md deleted file mode 100644 index 6a2e2aeda40..00000000000 --- a/.chronus/changes/fix-csharp-azure-core-peer-dep-2026-5-27-18-53-25.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: fix -packages: - - "@typespec/http-client-csharp" ---- - -Declare `@azure-tools/typespec-azure-core` as a peer dependency. The emitter imports from this package at runtime but previously relied on npm's flat hoisting to resolve it, which caused failures under pnpm (with `enableGlobalVirtualStore: true`) and other strict resolvers.