Skip to content
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

Add an init command #109

Open
cshaa opened this issue Oct 21, 2024 · 3 comments
Open

Add an init command #109

cshaa opened this issue Oct 21, 2024 · 3 comments

Comments

@cshaa
Copy link

cshaa commented Oct 21, 2024

I work on a package that is published to NPM, but internally uses some JSR modules. Currently, if anyone wants to use the package, they have to manually create a .npmrc file and add @jsr:registry=https://npm.jsr.io into it. It would be great to have some kind of jsr init command which we could tell the users to use before installing our package.

@dirkluijk
Copy link

Isn’t this something npx jsr add already does?

@cshaa
Copy link
Author

cshaa commented Oct 23, 2024

Running just npx jsr add throws with:

ERR_PNPM_MISSING_PACKAGE_NAME  `pnpm add` requires the package name
Child process exited with: 1

Therefore, we'd have to tell the users of our package to either explicitly install one of its dependencies, or to install a dummy JSR package, neither of which sounds ideal.

@dirkluijk
Copy link

So you basically wanna initialize the .npmrc without having to add a specific package. Makes sense! Upvoted the idea.

@lucacasonato lucacasonato transferred this issue from jsr-io/jsr Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

2 participants