Skip to content

Not able to use jsr.json with deno.json #103

@yuhr

Description

@yuhr

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'.

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 the jsr.json configuration file can instead be placed in the deno.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 than deno.json if both present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions