Skip to content

Fix JSR publish by adding .ts import extensions#858

Merged
thebentern merged 1 commit intomeshtastic:masterfrom
danditomaso:fix/jsr-import-extensions
Feb 7, 2026
Merged

Fix JSR publish by adding .ts import extensions#858
thebentern merged 1 commit intomeshtastic:masterfrom
danditomaso:fix/jsr-import-extensions

Conversation

@danditomaso
Copy link
Contributor

Summary

  • Adds import_extension=.ts option to the bufbuild/es plugin in buf.gen.yaml
  • Fixes TS2307 errors during npx jsr publish caused by generated protobuf files using bare imports without .ts extensions
  • JSR uses Deno-style module resolution which requires explicit file extensions

Test plan

  • Run the publish workflow with dry_run: true and verify JSR publish step passes type checking

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.
@thebentern thebentern merged commit e2d1873 into meshtastic:master Feb 7, 2026
3 checks passed
@danditomaso danditomaso deleted the fix/jsr-import-extensions branch February 7, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants