We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66c410b commit 878c337Copy full SHA for 878c337
packages/@vue/cli-plugin-typescript/generator/convert.js
@@ -1,9 +1,9 @@
1
-module.exports = (api, { tsLint = false, convertAllFiles = true } = {}) => {
+module.exports = (api, { tsLint = false, convertJsToTs = true } = {}) => {
2
const jsRE = /\.js$/
3
const excludeRE = /^tests\/e2e\/|(\.config|rc)\.js$/
4
const convertLintFlags = require('../lib/convertLintFlags')
5
api.postProcessFiles(files => {
6
- if (convertAllFiles) {
+ if (convertJsToTs) {
7
// delete all js files that have a ts file of the same name
8
// and simply rename other js files to ts
9
for (const file in files) {
0 commit comments