-
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix yarn npm publish for scoped packages
this will make yarn berry `yarn npm publish` behave like `npm publish`: `npm publish` on an already public scoped package will publish it gladly however for `yarn npm publish`, even if the scoped package is already published publicly we need to specify the `--access public` argument, or it will fail with 402 (Payment Required) here I add a check (currently only for yarn berry) for whether the published version of the package is public, and if so, set publishScoped to true (and don't ask for it)
- Loading branch information
1 parent
7c00edc
commit 6c2c930
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters