-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish to JSR? #290
Comments
Although just realized putting |
@josh-hemphill this sounds like a great idea! I would be happy to merge a PR implementing this. |
Last night I was trying to get a one-liner in the scripts to update the |
Is your feature request related to a problem? Please describe.
I've been consuming packages from it in all my one-off scripts because I can just throw a
import a from "jsr:package@1"
in my files and just get a best-effort updated version short of major breaking changes.But
eta
isn't there, so I thought I'd ask.Describe the solution you'd like
Reading through the docs for JSR and skimming the
eta
codebase, I think it could be published to JSR just by putting ajsr.json
file in thesrc
directory, to skip everything else, and assuming there are no esm-incompatible statements in the codebase, it should "just work"Describe alternatives you've considered
I can keep using
https://deno.land/x/eta
but Deno is prioritizing JSR and encouraging not usinghttps
in imports since it prevents optimizations.I'm happy to make a PR, I think I almost have one already, just got to figure out the best way to update the version in
jsr.json
on release in thenp
scripts. Already ran a dry run and it all seems to work (it does want two explicit return types and two explicit types add on the public api surface to speed up type-checking for enabling auto-.d.ts generation, but it's not strictly necessary, just have to add another flag.The text was updated successfully, but these errors were encountered: