From f2c5ebae3dafa092eae64c7df95b7e957da19b16 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Tue, 29 Nov 2022 09:27:28 -0500 Subject: [PATCH] feat(react): default to Vite when converting from CRA to Nx (#13473) --- packages/cra-to-nx/src/index.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/cra-to-nx/src/index.ts b/packages/cra-to-nx/src/index.ts index f9fcf298053cb..57945b8372ce0 100644 --- a/packages/cra-to-nx/src/index.ts +++ b/packages/cra-to-nx/src/index.ts @@ -14,22 +14,23 @@ export const commandsObject = yargs }) .option('e2e', { type: 'boolean', - describe: 'Generate end-to-end tests with Cypress', + describe: 'Generate end-to-end tests with Cypress.', default: false, }) .option('nxCloud', { type: 'boolean', - describe: 'Setup Nx Cloud', + describe: 'Setup Nx Cloud.', default: true, }) .option('vite', { type: 'boolean', - describe: 'Use Vite and Vitest (instead of Webpack and Jest)', - default: false, + describe: + 'Use Vite and Vitest (instead of Webpack and Jest). Pass --vite=false to use Webpack.', + default: true, }) .option('integrated', { type: 'boolean', - describe: 'Use integrated folder structure, with apps folder', + describe: 'Use integrated folder structure, with apps folder.', default: false, }) .help();