Skip to content

[Feature] Improve yarn npm publish to match other package managers #6849

@Saadnajmi

Description

@Saadnajmi
  • I'd be willing to implement this feature (contributing guide)
  • This feature is important to have in this repository; a contrib plugin wouldn't do

Describe the user story

A clear and concise description of what workflow is meant to be improved.
Example: "As a developer, I often want to do , but I often face ".

See nrwl/nx#29242 (comment)

I want to use nx release, with Yarn berry, with the workspace:* protocol in my repo. Currently, I cannot do that, because yarn npm publish command does not:

  • Run --dry-run
  • Request JSON output with --json
  • Specify a working directory via a positional argument, you have to already be in the directory
  • Set the --registry on the request, it has to come from yarn config it seems?

where other package managers like pnpm and bun do.

Describe the solution you'd like

Improve the publish implementation to support these features.

Describe the drawbacks of your solution

No drawbacks, only new features?

Describe alternatives you've considered

Why not make it a plugin --> Maybe. I wanted to start by seeing if a PR to the repo could do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions