Skip to content
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

feat: tup-274 peerDeps not deps #46

Merged
merged 2 commits into from
Oct 28, 2022
Merged

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Sep 2, 2022

Overview

Change dependencies to be peerDependencies.

Short Story

This change will prepare Core Styles for a future in a monorepo, but not break how TACC/Core-CMS currently uses this project.

Long Story

A separate repo, TACC/tup-ui is an NX-managed monorepo. Such repos are intended to have all their dependencies defined in the root directory package.json, so every project within the monorepo can share those dependencies at matching versions. One of its projects is core-styles, which is a living v0.7.x of this repo (because of a premature migration). TACC/tup-ui's core-styles still lists its dependencies within its package.json, because TACC/Core-CMS — which was dependent on TACC/tup-ui's core-styles for a short time — expects Core Styles to manage dependencies for building CSS.

Though TACC/Core-CMS is no longer using TACC/tup-ui's core-styles, TACC/tup-ui is the planned future home of Core Styles. So, architecture changes to it there must work here. And TACC/tup-ui#51 there moves the dependencies of TACC/tup-ui's core-styles to TACC/tup-ui's root package.json, so that change can also occur here (at least for testing, if this PR is not approved).

TACC/tup-ui's core-styles is only retaining its list of dependencies as peerDependencies so that it's architecture remains compatible with TACC/Core-CMS (even though its styles are one minor version behind). Peer dependencies are automatically installed since NPM v7. So, when TACC/Core-CMS installs Core Styles (from whichever repo publishes it), NPM will automatically install all of its dependencies.

Related

Changes

  • change dependencies to peerDependencies

Testing

See TACC/Core-CMS#552 "Testing".

Copy link
Member

@rstijerina rstijerina left a comment

Choose a reason for hiding this comment

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

LGTM, tested task/tup-274-core-styles-deps

@wesleyboar
Copy link
Member Author

Postponing resolution of this PR until TACC/tup-ui#51 is resolved.

If the tup-ui core-styles PR is merged, merge this. If the tup-ui core-styles PR is closed, close this PR.

@wesleyboar wesleyboar added the blocked Unable to continue work label Sep 7, 2022
@wesleyboar wesleyboar merged commit 9ef5ad7 into main Oct 28, 2022
@wesleyboar wesleyboar deleted the task/tup-274-core-styles-deps branch October 28, 2022 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Unable to continue work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants