diff --git a/packages/@vue/cli-plugin-typescript/generator/index.js b/packages/@vue/cli-plugin-typescript/generator/index.js index d9257efe47..b555e23081 100644 --- a/packages/@vue/cli-plugin-typescript/generator/index.js +++ b/packages/@vue/cli-plugin-typescript/generator/index.js @@ -4,6 +4,7 @@ module.exports = (api, { classComponent, tsLint, lintOn = [], + skipLibCheck = true, convertJsToTs, allowJs }, rootOptions, invoking) => { @@ -90,6 +91,7 @@ module.exports = (api, { } api.render('./template', { + skipLibCheck, hasMocha: api.hasPlugin('unit-mocha'), hasJest: api.hasPlugin('unit-jest') }) diff --git a/packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json b/packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json index a7497987c4..669c746c39 100644 --- a/packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json +++ b/packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json @@ -12,7 +12,7 @@ <%_ if (options.allowJs) { _%> "allowJs": true, <%_ } _%> - <%_ if (options.skipLibCheck) { _%> + <%_ if (skipLibCheck) { _%> "skipLibCheck": true, <%_ } _%> "esModuleInterop": true,