fix ts prompt spec

This commit is contained in:
Evan You
2018-01-11 14:25:52 -05:00
parent 5b19826426
commit eb2b4f1ece
2 changed files with 7 additions and 2 deletions

View File

@@ -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
}
}
}

View File

@@ -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?'
})
}