diff --git a/packages/@vue/cli/lib/promptModules/__tests__/typescript.spec.js b/packages/@vue/cli/lib/promptModules/__tests__/typescript.spec.js index ec3332f07..8ba9d7cda 100644 --- a/packages/@vue/cli/lib/promptModules/__tests__/typescript.spec.js +++ b/packages/@vue/cli/lib/promptModules/__tests__/typescript.spec.js @@ -17,6 +17,10 @@ test('should work', async () => { message: 'Use class-style component', confirm: true }, + { + message: 'Use Babel', + confirm: true + }, { message: 'Pick additional lint features', choices: ['on save', 'on commit'], @@ -29,7 +33,8 @@ test('should work', async () => { '@vue/cli-plugin-typescript': { classComponent: true, lint: true, - lintOn: ['save', 'commit'] + lintOn: ['save', 'commit'], + useTsWithBabel: true } } } diff --git a/packages/@vue/cli/lib/promptModules/typescript.js b/packages/@vue/cli/lib/promptModules/typescript.js index 7c83ac3b3..ef35f65ac 100644 --- a/packages/@vue/cli/lib/promptModules/typescript.js +++ b/packages/@vue/cli/lib/promptModules/typescript.js @@ -26,7 +26,7 @@ module.exports = cli => { name: 'useTsWithBabel', when: answers => answers.features.includes('ts'), type: 'confirm', - message: 'Use TypeScript together with Babel for auto-detected polyfills?' + message: 'Use Babel alongside TypeScript for auto-detected polyfills?' }) }