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

Revise output of workspaces:list-versions script #5020

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcmire
Copy link
Contributor

@mcmire mcmire commented Dec 3, 2024

Explanation

yarn workspaces:list-versions can be run to quickly obtain the list of packages in this monorepo and their current versions.

However, this output is a bit difficult to read, because the names of each package are right-aligned. This commit left-aligns them and then adds dots in between the package name and its version for readability.

Here is the output of this script now:

@metamask/accounts-controller.....................20.0.1
@metamask/address-book-controller.................6.0.2
@metamask/announcement-controller.................7.0.2
@metamask/approval-controller.....................7.1.1
@metamask/assets-controllers......................45.1.1
@metamask/base-controller.........................7.0.2
@metamask/build-utils.............................3.0.2
@metamask/chain-controller........................0.2.1
@metamask/composable-controller...................9.0.1
@metamask/controller-utils........................11.4.4
@metamask/ens-controller..........................15.0.1
@metamask/eth-json-rpc-provider...................4.1.6
@metamask/gas-fee-controller......................22.0.2
@metamask/json-rpc-engine.........................10.0.1
@metamask/json-rpc-middleware-stream..............8.0.5
@metamask/keyring-controller......................19.0.1
@metamask/logging-controller......................6.0.3
@metamask/message-manager.........................11.0.2
@metamask/multichain..............................1.1.1
@metamask/name-controller.........................8.0.2
@metamask/network-controller......................22.1.0
@metamask/notification-services-controller........0.15.0
@metamask/permission-controller...................11.0.4
@metamask/permission-log-controller...............3.0.2
@metamask/phishing-controller.....................12.3.1
@metamask/polling-controller......................12.0.2
@metamask/preferences-controller..................15.0.1
@metamask/profile-sync-controller.................3.0.0
@metamask/queued-request-controller...............8.0.1
@metamask/rate-limit-controller...................6.0.2
@metamask/remote-feature-flag-controller..........1.1.0
@metamask/selected-network-controller.............20.0.1
@metamask/signature-controller....................23.0.1
@metamask/transaction-controller..................41.1.0
@metamask/user-operation-controller...............20.0.1

References

(None)

Changelog

(N/A)

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

`yarn workspaces:list-versions` can be run to quickly obtain the list of
packages in this monorepo and their current versions.

However, this output is a bit difficult to read, because the names of
each package are right-aligned. This commit left-aligns them and then
adds dots in between the package name and its version for readability.

For instance, here is the current output as of this commit:

```
@metamask/accounts-controller.....................20.0.1
@metamask/address-book-controller.................6.0.2
@metamask/announcement-controller.................7.0.2
@metamask/approval-controller.....................7.1.1
@metamask/assets-controllers......................45.1.1
@metamask/base-controller.........................7.0.2
@metamask/build-utils.............................3.0.2
@metamask/chain-controller........................0.2.1
@metamask/composable-controller...................9.0.1
@metamask/controller-utils........................11.4.4
@metamask/ens-controller..........................15.0.1
@metamask/eth-json-rpc-provider...................4.1.6
@metamask/gas-fee-controller......................22.0.2
@metamask/json-rpc-engine.........................10.0.1
@metamask/json-rpc-middleware-stream..............8.0.5
@metamask/keyring-controller......................19.0.1
@metamask/logging-controller......................6.0.3
@metamask/message-manager.........................11.0.2
@metamask/multichain..............................1.1.1
@metamask/name-controller.........................8.0.2
@metamask/network-controller......................22.1.0
@metamask/notification-services-controller........0.15.0
@metamask/permission-controller...................11.0.4
@metamask/permission-log-controller...............3.0.2
@metamask/phishing-controller.....................12.3.1
@metamask/polling-controller......................12.0.2
@metamask/preferences-controller..................15.0.1
@metamask/profile-sync-controller.................3.0.0
@metamask/queued-request-controller...............8.0.1
@metamask/rate-limit-controller...................6.0.2
@metamask/remote-feature-flag-controller..........1.1.0
@metamask/selected-network-controller.............20.0.1
@metamask/signature-controller....................23.0.1
@metamask/transaction-controller..................41.1.0
@metamask/user-operation-controller...............20.0.1
```
@mcmire mcmire force-pushed the update-list-versions-script branch from b47a2f8 to 49b29ab Compare December 3, 2024 19:22
@mcmire mcmire self-assigned this Dec 3, 2024
@mcmire mcmire requested a review from a team December 3, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant