From 212b89fa25fd0a39473e845d1665d45f9da9dad3 Mon Sep 17 00:00:00 2001 From: Abhiram Satpute Date: Wed, 22 Feb 2023 02:00:34 +0530 Subject: [PATCH] Bug: yarn flow dom does not exist, so console should suggest yarn flow dom-node (#26213) ## Summary The `yarn flow` command, as suggested for every PR Submission (Task No. 9), tells us `The yarn flow command now requires you to pick a primary renderer` and provides a list for the same. However, in at the bottom of the prompt, it suggests `If you are not sure, run yarn flow dom`. This command `yarn flow dom` does not exist in the list and thus the command does nothing and exits with `status code 1` without any flow test. While trying to submit a different PR for code cleaning, just during submission I read the PR Guidelines, and while doing `yarn test`, `yarn lint`, and `yarn flow`, I came across this issue and thought of submitting a PR for the same. ## How did you test this change? Since this code change does not change any logic, just the text information, I only ran `yarn linc` and `yarn test` for the same. Here is how the issue currently looks like: ![facebook yarn flow dom](https://user-images.githubusercontent.com/20269286/220337686-b8a9b786-92e0-4c66-88a9-e94bfbed6edf.JPG) Signed-off-by: abhiram11 Co-authored-by: abhiram11 --- scripts/tasks/flow.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/tasks/flow.js b/scripts/tasks/flow.js index 3a0c6cd29a..78bfe87c38 100644 --- a/scripts/tasks/flow.js +++ b/scripts/tasks/flow.js @@ -34,7 +34,9 @@ if (!primaryRenderer) { } }); console.log(); - console.log('If you are not sure, run ' + chalk.green('yarn flow dom') + '.'); + console.log( + 'If you are not sure, run ' + chalk.green('yarn flow dom-node') + '.' + ); console.log( 'This will still typecheck non-DOM packages, although less precisely.' );