Skip to content

Backport of [ui] Namespaced and file-specified deps for consul-ui into release/1.19.x#21523

Merged
philrenaud merged 5 commits into
release/1.19.xfrom
backport/NET-10157-consul-ui-devdep-specificity/badly-big-slug
Jul 8, 2024
Merged

Backport of [ui] Namespaced and file-specified deps for consul-ui into release/1.19.x#21523
philrenaud merged 5 commits into
release/1.19.xfrom
backport/NET-10157-consul-ui-devdep-specificity/badly-big-slug

Conversation

@hc-github-team-consul-core
Copy link
Copy Markdown
Collaborator

Backport

This PR is auto-generated from #21378 to be assessed for backporting due to the inclusion of the label backport/1.19.

The below text is copied from the body of the original PR.


Description

This resolves an ambiguous dependency resolution in consul-ui in the event that a developer attempted to yarn install or npm install from a non-workspace-root directory. This handles it in two ways:

  • Namespaces with a @hashicorp/ prefix, reducing the risk of a hypothetical public registry squat situation should local packages ever stop being relative
  • Explicitly locally dependency-links packages

Something to note with this is that the packages become a little more bound together than before; for example, it would be more difficult to maintain multiple valid versions of a sub-package here and let consul-ui differentiate between them. We could expand this into submodules some day, but not today.


Overview of commits

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved Consul Bot automated PR

@github-actions github-actions Bot added the theme/ui Anything related to the UI label Jul 8, 2024
@philrenaud philrenaud merged commit 9c44e84 into release/1.19.x Jul 8, 2024
@philrenaud philrenaud deleted the backport/NET-10157-consul-ui-devdep-specificity/badly-big-slug branch July 8, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme/ui Anything related to the UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants