From 2062d43158002926d6d9631317218a57923b64c6 Mon Sep 17 00:00:00 2001 From: Dan D Date: Sat, 7 Feb 2026 14:22:55 -0500 Subject: [PATCH] Fix JSR publish by adding .ts import extensions to protobuf codegen The bufbuild/es plugin generates imports without file extensions, which fails JSR's Deno-style module resolution (TS2307). Adding import_extension=.ts ensures all generated _pb.ts files use explicit .ts extensions in their relative imports. --- buf.gen.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buf.gen.yaml b/buf.gen.yaml index daec499..652f41a 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -2,4 +2,4 @@ version: v2 plugins: - remote: buf.build/bufbuild/es:v2.1.0 out: packages/ts/lib - opt: target=ts + opt: target=ts,import_extension=.ts