Skip to content

Provide tools to make publishing to npm easier #29782

@bartlomieju

Description

@bartlomieju
Member

deno publish should auto-discover if there’s a package.json file and then publish to npm. It could be forced with --npm and --jsr flags. Easy win.

  • Priority: 4
  • Technical complexity: 2

Activity

added this to the 2.4.0 milestone on Jun 17, 2025
bartlomieju

bartlomieju commented on Jun 17, 2025

@bartlomieju
MemberAuthor

We might want to do that by running npm under the hood for the time being.

changed the title [-]Support publishing npm packages[/-] [+]Provide tools to make publishing to npm easier[/+] on Jun 26, 2025
bartlomieju

bartlomieju commented on Jun 26, 2025

@bartlomieju
MemberAuthor

After more discussion in the team, we decided not to pursue publishing to npm itself, as it can be done with deno -A npm:npm --publish.

On the other hand we want to provide more useful tools for package authors that would make publishing to npm much easier - eg. a way to transpile code (#28069) or a way to generate .d.ts files from .ts files automatically.

modified the milestones: 2.4.0, 2.5.0 on Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    node compatpublishRelated to "deno publish" subcommand

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @bartlomieju

      Issue actions

        Provide tools to make publishing to npm easier · Issue #29782 · denoland/deno