From 5ae8b3f1d4a1c4c32a4e4a58dbe25d79acea398a Mon Sep 17 00:00:00 2001 From: Bryan Thompson Date: Wed, 5 Aug 2026 11:00:34 -0700 Subject: [PATCH 1/3] fix(changelog-emitter): declare node types explicitly The package relied on automatic @types discovery to pick up @types/node, which it already declares as a devDependency. Under @typespec/compiler 1.14 that discovery stops finding it, and tsc fails on the node: imports and import.meta.url with errors that misleadingly point at @types/node. --- lib/changelog-emitter/tsconfig.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/changelog-emitter/tsconfig.json b/lib/changelog-emitter/tsconfig.json index 63c79b0b4..f7434d048 100644 --- a/lib/changelog-emitter/tsconfig.json +++ b/lib/changelog-emitter/tsconfig.json @@ -5,6 +5,9 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "lib": ["ES2022"], + // Declared explicitly: automatic @types discovery stops finding node once + // @typespec/compiler 1.14 changes the dependency layout. + "types": ["node"], "rootDir": ".", "outDir": "dist", "sourceMap": true, From c554fc81f57a68bc086966165b5b8e3d9177b5f4 Mon Sep 17 00:00:00 2001 From: Bryan Thompson Date: Wed, 5 Aug 2026 12:58:56 -0700 Subject: [PATCH 2/3] docs(changelog-emitter): drop unverified cause from types comment --- lib/changelog-emitter/tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/changelog-emitter/tsconfig.json b/lib/changelog-emitter/tsconfig.json index f7434d048..b45a61c8c 100644 --- a/lib/changelog-emitter/tsconfig.json +++ b/lib/changelog-emitter/tsconfig.json @@ -5,8 +5,8 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "lib": ["ES2022"], - // Declared explicitly: automatic @types discovery stops finding node once - // @typespec/compiler 1.14 changes the dependency layout. + // Declared explicitly rather than relying on automatic @types discovery, + // which stops resolving node under @typespec/compiler 1.14+. "types": ["node"], "rootDir": ".", "outDir": "dist", From e207fb74d846865dd519058cd63036b85b9f192a Mon Sep 17 00:00:00 2001 From: Bryan Thompson Date: Wed, 5 Aug 2026 13:00:45 -0700 Subject: [PATCH 3/3] refactor(changelog-emitter): drop redundant comment on types field --- lib/changelog-emitter/tsconfig.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/changelog-emitter/tsconfig.json b/lib/changelog-emitter/tsconfig.json index b45a61c8c..0647c276d 100644 --- a/lib/changelog-emitter/tsconfig.json +++ b/lib/changelog-emitter/tsconfig.json @@ -5,8 +5,6 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "lib": ["ES2022"], - // Declared explicitly rather than relying on automatic @types discovery, - // which stops resolving node under @typespec/compiler 1.14+. "types": ["node"], "rootDir": ".", "outDir": "dist",