mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-20 06:09:56 -06:00
fix ts prompt spec
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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?'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user