diff --git a/packages/@vue/cli-plugin-typescript/generator/index.js b/packages/@vue/cli-plugin-typescript/generator/index.js index d86b175aa1..5435e25b05 100644 --- a/packages/@vue/cli-plugin-typescript/generator/index.js +++ b/packages/@vue/cli-plugin-typescript/generator/index.js @@ -112,7 +112,7 @@ module.exports = (api, { // delete all js files that have a ts file of the same name // and simply rename other js files to ts const jsRE = /\.js$/ - const excludeRE = /^test\/e2e\/|\.config\.js$/ + const excludeRE = /^tests\/e2e\/|\.config\.js$/ const convertLintFlags = require('../lib/convertLintFlags') api.postProcessFiles(files => { for (const file in files) {