Skip to content

Commit

Permalink
fix: fix skipLibCheck default value for vue create (#5731)
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Aug 5, 2020
1 parent 467e577 commit ccbcc0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/@vue/cli-plugin-typescript/generator/index.js
Expand Up @@ -4,6 +4,7 @@ module.exports = (api, {
classComponent,
tsLint,
lintOn = [],
skipLibCheck = true,
convertJsToTs,
allowJs
}, rootOptions, invoking) => {
Expand Down Expand Up @@ -90,6 +91,7 @@ module.exports = (api, {
}

api.render('./template', {
skipLibCheck,
hasMocha: api.hasPlugin('unit-mocha'),
hasJest: api.hasPlugin('unit-jest')
})
Expand Down
Expand Up @@ -12,7 +12,7 @@
<%_ if (options.allowJs) { _%>
"allowJs": true,
<%_ } _%>
<%_ if (options.skipLibCheck) { _%>
<%_ if (skipLibCheck) { _%>
"skipLibCheck": true,
<%_ } _%>
"esModuleInterop": true,
Expand Down

0 comments on commit ccbcc0d

Please sign in to comment.