-
Notifications
You must be signed in to change notification settings - Fork 15
add run subcommand #76
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
Comments
Currently Line 56 in 4f1544c
Does it make sense to change the behavior conditionally based on the given argument? (Or should we replace the existing behavior?) |
what does the run command do, exactly? Suppose I have a module with a default export someFunction(){} Will it exec the some function, and pass the argument to it if any? |
Right now it only runs scripts defined in |
Oh, okay |
I'm looking forward to working on this, I'm going to need more explanation of the feature request |
With npm packages I can run commands like prettier without installing the package using commands like npx, bunx or yarn dlx, pnpm dlx. I wish there was a way to run jsr packages in node/bun like we have with "deno run" |
This will likely require buy in from npm and bun. You can get half way there with npm using a For example:
This is because npm expects If you remove the
|
I suppose it might be possible for
I don't think that's really within the scope of JSR since it's not a runtime itself. The better solution is for |
I tried to support this, but npm.jsr.io doesn't exports a |
This feature is important for AI tooling. I created an MCP server with Deno and published it to JSR, but users have to install Deno to use it: https://gitlab.com/soapbox-pub/nostr-mcp#installation So I still need to publish it to npm to make it accessible to everyone. |
It looks like this gets close:
I guess it's because this is missing a What if jsr always shipped a dummy "bin" script that just imports the main export? |
@alexgleason I agree with you. Or you can use |
I created a workaround to this issue, xjsr: https://www.npmjs.com/package/xjsr npx xjsr @alexgleason/hello |
just like
deno run jsr:@luca/flag
@JLarky https://twitter.com/JLarky/status/1783147968251748624
The text was updated successfully, but these errors were encountered: