From 5d5b170cb82876df101a84c4b62ab5930e03d7f2 Mon Sep 17 00:00:00 2001 From: Ian Sutherland Date: Mon, 3 Dec 2018 15:19:11 -0700 Subject: [PATCH 1/2] Add pre-eject message about new features in v2 --- packages/react-scripts/scripts/eject.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/react-scripts/scripts/eject.js b/packages/react-scripts/scripts/eject.js index f4dba4d0b0f..eb43858b07b 100644 --- a/packages/react-scripts/scripts/eject.js +++ b/packages/react-scripts/scripts/eject.js @@ -38,6 +38,14 @@ function getGitStatus() { } } +console.log( + chalk.cyan( + 'NOTE: Create React App 2 supports TypeScript, SASS, CSS Modules and more without ejecting: ' + + 'https://reactjs.org/blog/2018/10/01/create-react-app-v2.html' + ) +); +console.log(); + inquirer .prompt({ type: 'confirm', From fbfe366a2f4f1339f2e1dba12a75c6dbef76e506 Mon Sep 17 00:00:00 2001 From: Ian Sutherland Date: Mon, 3 Dec 2018 17:22:31 -0700 Subject: [PATCH 2/2] Make message bold --- packages/react-scripts/scripts/eject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-scripts/scripts/eject.js b/packages/react-scripts/scripts/eject.js index eb43858b07b..3f850068668 100644 --- a/packages/react-scripts/scripts/eject.js +++ b/packages/react-scripts/scripts/eject.js @@ -39,8 +39,8 @@ function getGitStatus() { } console.log( - chalk.cyan( - 'NOTE: Create React App 2 supports TypeScript, SASS, CSS Modules and more without ejecting: ' + + chalk.cyan.bold( + 'NOTE: Create React App 2 supports TypeScript, Sass, CSS Modules and more without ejecting: ' + 'https://reactjs.org/blog/2018/10/01/create-react-app-v2.html' ) );