From 222539553f121a5cbdec4f15dfab7724fdf484e9 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Mon, 24 Jun 2024 09:15:08 -0230 Subject: [PATCH] Fix README graph --- README.md | 4 ++++ scripts/update-readme-content.ts | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 43ded2e15ff..73822386486 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ This repository contains the following packages [^fn1]: +- [`@metamask/accounts-controller`](packages/accounts-controller) - [`@metamask/address-book-controller`](packages/address-book-controller) - [`@metamask/announcement-controller`](packages/announcement-controller) - [`@metamask/approval-controller`](packages/approval-controller) @@ -53,6 +54,7 @@ Or, in graph form [^fn1]: %%{ init: { 'flowchart': { 'curve': 'bumpX' } } }%% graph LR; linkStyle default opacity:0.5 + accounts_controller(["@metamask/accounts-controller"]); address_book_controller(["@metamask/address-book-controller"]); announcement_controller(["@metamask/announcement-controller"]); approval_controller(["@metamask/approval-controller"]); @@ -87,6 +89,8 @@ linkStyle default opacity:0.5 transaction_controller(["@metamask/transaction-controller"]); user_operation_controller(["@metamask/user-operation-controller"]); wallet_framework(["@metamask/wallet-framework"]); + accounts_controller --> base_controller; + accounts_controller --> keyring_controller; address_book_controller --> base_controller; address_book_controller --> controller_utils; announcement_controller --> base_controller; diff --git a/scripts/update-readme-content.ts b/scripts/update-readme-content.ts index afbf1ceff20..e960739aa31 100755 --- a/scripts/update-readme-content.ts +++ b/scripts/update-readme-content.ts @@ -56,10 +56,7 @@ async function retrieveWorkspaces(): Promise { '--verbose', ]); - return stdout - .split('\n') - .map((line) => JSON.parse(line)) - .slice(1); + return stdout.split('\n').map((line) => JSON.parse(line)); } /**