Basically I prefer loosely coupled way, so I want to write package manifest in jsr.json even in a Deno project. But when I run deno publish --dry-run or pnpm dlx jsr publish --dry-run, I'm getting an error:
error: Missing 'name', 'version' and 'exports' field in '<my-project-directory>/deno.json'.
Basically I prefer loosely coupled way, so I want to write package manifest in
jsr.json
even in a Deno project. But when I rundeno publish --dry-run
orpnpm dlx jsr publish --dry-run
, I'm getting an error:The documentation says “Deno users can also include the required JSR properties in their
deno.json
to avoid having to create another file” (emphasize mine) and “When using Deno, all properties of thejsr.json
configuration file can instead be placed in thedeno.json
” (emphasize mine), thus (and even if not said so) it should still definitely be possible to use the another file.So I think the CLI must prioritize
jsr.json
thandeno.json
if both present.