From d81aa52e20a6ba1660ec95c85f4352c2bb141caa Mon Sep 17 00:00:00 2001 From: Jony Hudson Date: Sun, 8 Sep 2024 22:36:05 +0100 Subject: [PATCH 1/2] Improve devtools documentation Without adding the optional dependency the process fails. --- readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 0315c1c6..56ae6e0e 100644 --- a/readme.md +++ b/readme.md @@ -2081,7 +2081,8 @@ Check out [ink-testing-library](https://github.com/vadimdemedes/ink-testing-libr ![](media/devtools.jpg) Ink supports [React Devtools](https://github.com/facebook/react/tree/master/packages/react-devtools) out-of-the-box. -To enable integration with React Devtools in your Ink-based CLI, run it with `DEV=true` environment variable: +To enable integration with React Devtools in your Ink-based CLI, first ensure you have installed the optional +`react-devtools-core` dependency, and then run your application with `DEV=true` environment variable: ```sh DEV=true my-cli From 77575076e3514714bfd3e9da85b2a089ddf88bb3 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 9 Sep 2024 13:29:52 +0700 Subject: [PATCH 2/2] Update readme.md --- readme.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 56ae6e0e..71cd8077 100644 --- a/readme.md +++ b/readme.md @@ -2080,9 +2080,7 @@ Check out [ink-testing-library](https://github.com/vadimdemedes/ink-testing-libr ![](media/devtools.jpg) -Ink supports [React Devtools](https://github.com/facebook/react/tree/master/packages/react-devtools) out-of-the-box. -To enable integration with React Devtools in your Ink-based CLI, first ensure you have installed the optional -`react-devtools-core` dependency, and then run your application with `DEV=true` environment variable: +Ink supports [React Devtools](https://github.com/facebook/react/tree/master/packages/react-devtools) out-of-the-box. To enable integration with React Devtools in your Ink-based CLI, first ensure you have installed the optional `react-devtools-core` dependency, and then run your app with `DEV=true` environment variable: ```sh DEV=true my-cli