Skip to content

Commit

Permalink
fix: fix typo in typescript generator, convertAllFiles -> convertJsTo…
Browse files Browse the repository at this point in the history
…Ts (#4346)

fixes #2676 (comment)
  • Loading branch information
haoqunjiang authored Jul 25, 2019
1 parent 80c20db commit 8b7af38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-typescript/generator/convert.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = (api, { tsLint = false, convertAllFiles = true } = {}) => {
module.exports = (api, { tsLint = false, convertJsToTs = true } = {}) => {
const jsRE = /\.js$/
const excludeRE = /^tests\/e2e\/|(\.config|rc)\.js$/
const convertLintFlags = require('../lib/convertLintFlags')
api.postProcessFiles(files => {
if (convertAllFiles) {
if (convertJsToTs) {
// delete all js files that have a ts file of the same name
// and simply rename other js files to ts
for (const file in files) {
Expand Down

0 comments on commit 8b7af38

Please sign in to comment.