-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect publishConfig
in package manifest
#7829
base: master
Are you sure you want to change the base?
Conversation
|
One thing: I haven't figure out how to document /^@[0-9a-z-~][0-9a-z-_.~]{0,210}:registry$/.test(key) |
Any traction on this? |
Hey @arcanis sorry for ping you directly, I just notice that you are active merging stuff. Could you help us to move this ticket forward? We are dealing with a GitLab NPM Registry issue https://gitlab.com/gitlab-org/gitlab/-/issues/121668 and we need this feature. Thanks in advance. |
Hi @rally25rs 👋 You mentioned in another thread you were interested in a community fix for this issue:
Any chance a review of this PR can be prioritized? 🙏 |
This comment has been minimized.
This comment has been minimized.
From: @arcanis |
Summary
This pull request ensures that
publishConfig
inpackage.json
is respected. In details:publishConfig.access
code refactored (shouldn't affect actual behavior), based on--registry
should have higher priority overpublishConfig.registry
#6423.Supports
publishConfig["@scope:registry"]
, this is requested multiple times in yarn publish not respecting publishConfig in package.json #5310. Precedence of configs has also changed. Before this change (from highest priority to lowest, same below):publishConfig.registry
in package.jsonpublishConfig.registry
in package.json--registry
flag@scope:registry
in rcregistry
in rcregistry
in rcAfter this change:
--registry
flag--registry
flagpublishConfig["@scope:registry"]
in package.jsonpublishConfig.registry
in package.jsonpublishConfig.registry
in package.json@scope:registry
in rcregistry
in rcregistry
in rcSupports
publishConfig.tag
, overridable by--tag
flag.Test plan
Tests added in
__tests__/commands/publish.js
.Close: #4732
Close: #5310
Based on and conflict with: #6423
Related to: #5376