fix: fix skipLibCheck default value for vue create (#5731)

This commit is contained in:
Haoqun Jiang
2020-08-05 16:27:21 +08:00
committed by GitHub
parent 467e577e49
commit ccbcc0d91f
2 changed files with 3 additions and 1 deletions

View File

@@ -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')
})

View File

@@ -12,7 +12,7 @@
<%_ if (options.allowJs) { _%>
"allowJs": true,
<%_ } _%>
<%_ if (options.skipLibCheck) { _%>
<%_ if (skipLibCheck) { _%>
"skipLibCheck": true,
<%_ } _%>
"esModuleInterop": true,