opentelemetry-js
opentelemetry-js copied to clipboard
JSR publishing support
trafficstars
Hi there! With the addition of Deno support (#2293), and the lack of dependencies on the @opentelemetry/api package, it would be nice to see support for the JSR registry, as that would allow Deno users to bypass the Node compatibility layer
It shouldn't be too difficult to do this, though from locally trying this, there are a few things that would need to be done:
- create a
jsr.jsonwith a package name, version, and exports - add explicit typing to a few public exports
- introduce the
version.tsfile and don't gitignore it (causes an error) - run
cd api && npx jsr publish --no-check --allow-dirty --unstable-sloppy-imports
publishing the package shouldn't be too much work, at least for the api package, and I could submit a pr if desired. #4106 would also probably be nice but it isn't a strict requirement and also would introduce more tooling