From b164f9baad29abe62c5476873d98506f69bc110d Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Wed, 3 Jul 2024 20:02:11 +0200 Subject: [PATCH] docs: style the why commands --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a3d95b9..0fb6705 100644 --- a/README.md +++ b/README.md @@ -104,10 +104,14 @@ React Native is a complex library, split over multiple different packages. Unfor You can check if your monorepo is installing multiple versions of React Native with the `npm list` command, supported by all major package managers: -``` +```bash $ npm why react-native $ yarn why react-native + +# Bun doesn't have `bun why` (yet), but you can use `yarn why` instead $ bun install --yarn && yarn why react-native + +# pnpm needs `--recursive` to search in all workspaces within the monorepo $ pnpm why --recursive react-native ```