Skip to content

deno publish not using jsr.json when deno.json exists #22651

@Pinta365

Description

@Pinta365

Version: deno 1.41.1 (release, x86_64-pc-windows-msvc)

Problem:

When I have a deno.json file in the base folder deno publish doesnt seem to respect or even try to read options from jsr.json.

Error message looks like this.

PS E:\code\PROJECTNAME> deno publish --dry-run
error: file:///E:/code/PROJECTNAME/deno.json is missing 'name' field

if I rename or delete deno.json it correctly reads jsr.json when publishing.

PS E:\code\PROJECTNAME> deno publish --dry-run
Checking for slow types in the public API...
Simulating publish of <PACKAGE>@0.5.3 with files:
..
... FILE LIST REMOVED

Expected behaviour:

deno publish should check for the relevant options in jsr.json when the options is not included in deno.json. Or maybe even primary looking for the publish options in jsr.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlygood first issueGood for newcomersjsrIssues or feature requests relating to JSR.iopublishRelated to "deno publish" subcommand

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions