-
Notifications
You must be signed in to change notification settings - Fork 126
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
Allow users to use package.json without needing separate deno/jsr.json #555
Comments
Maybe |
I could see if the Perhaps there could be a {
"name": "@scoped/package-name",
"version": "1.0.0-rc",
"scripts": {
"prepublish": "npx jsr sync",
"publish": "npx jsr publish"
}
} I'd prefer it that |
Possibly autogenerated (#544 (comment)) jq '{ name, version, exports }' package.json >jsr.json |
Here is my command to move jq -s '.[1] + {name: .[0].name, version: .[0].version}' package.json jsr.json > temp.json && mv temp.json jsr.json Or also you can prefix the name: jq -s '.[1] + {name: ("@nikelborm/" + .[0].name), version: .[0].version}' package.json jsr.json > temp.json && mv temp.json jsr.json |
Looking into using the JSR registry, I tried to manually push a test package that I plan on building primarily for node. As such, I used the
package.json
file to declare things like name, version, and exports. Trying to push this failed, obviously.This means I need to add either a
jsr.json
ordeno.json
, which duplicates the name, version, and exports. I feel this is cumbersome, especially because I often use some variety of tooling to automate version bumping my package.json file. I don't personally know of any tools (beyond ones I've written and since deprecated) that worked withdeno.json
orjsr.json
. This puts me in a weird spot where I'd like to use the jsr registry, but I find the idea of needing to sync between package.json and jsr.json tedious. Maybe not tedious enough to not use it, but tedious enough I felt it necessary to create an issue on your github.The text was updated successfully, but these errors were encountered: