Skip to content

Make packages installable (binary) #297

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

Closed
m-dressler opened this issue Mar 17, 2024 · 3 comments
Closed

Make packages installable (binary) #297

m-dressler opened this issue Mar 17, 2024 · 3 comments
Assignees

Comments

@m-dressler
Copy link

Not sure if this is better to bring up here or in deno's repo, but I'd like to be able to host an installable (not 'addable') package on jsr.io, i.e., deno install @example/my-runnable-package.

Maybe this is already possible but not documented which URL I would need to install from, and it's as easy as marking a package as installable which updates the JSR installation instructions:

{
  "version": "1.0.0",
  "installable": true,
  "exports": "./main.ts",
  "imports": {
    "@example/package": "jsr:@example/package@^1.0.0"
  }
}
@github-project-automation github-project-automation bot moved this to Needs Triage in JSR Mar 17, 2024
@lucacasonato lucacasonato moved this from Needs Triage to Ready in JSR Apr 8, 2024
@lucacasonato lucacasonato self-assigned this Apr 8, 2024
@lucacasonato
Copy link
Member

In Deno you can install a JSR package with deno install jsr:@example/package.

@m-dressler
Copy link
Author

@lucacasonato Thank you! Probably just starting to work with Deno here. I personally would feel it would be nice to have jsr: be the default inferred package manager for deno install, but if that's not on the table this issue can be closed :)

@bcheidemann
Copy link

In Deno you can install a JSR package with deno install jsr:@example/package.

This is great, but for me part of the appeal of JSR is that it just works with all of the runtimes. Is it possible to publish an installable/binary in a way that it can be npm installed, then run with npx <name> or <name> (if -g is used)?

@github-project-automation github-project-automation bot moved this from Ready to Done in JSR Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants