Skip to content

Commit 878c337

Browse files
committed
fix: fix typo in typescript generator, convertAllFiles -> convertJsToTs (#4346)
fixes #2676 (comment) (cherry picked from commit 8b7af38)
1 parent 66c410b commit 878c337

File tree

1 file changed

+2
-2
lines changed
  • packages/@vue/cli-plugin-typescript/generator

1 file changed

+2
-2
lines changed

packages/@vue/cli-plugin-typescript/generator/convert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
module.exports = (api, { tsLint = false, convertAllFiles = true } = {}) => {
1+
module.exports = (api, { tsLint = false, convertJsToTs = true } = {}) => {
22
const jsRE = /\.js$/
33
const excludeRE = /^tests\/e2e\/|(\.config|rc)\.js$/
44
const convertLintFlags = require('../lib/convertLintFlags')
55
api.postProcessFiles(files => {
6-
if (convertAllFiles) {
6+
if (convertJsToTs) {
77
// delete all js files that have a ts file of the same name
88
// and simply rename other js files to ts
99
for (const file in files) {

0 commit comments

Comments
 (0)