mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-25 00:29:06 -06:00
fix: fix skipLibCheck default value for vue create (#5731)
This commit is contained in:
@@ -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')
|
||||
})
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<%_ if (options.allowJs) { _%>
|
||||
"allowJs": true,
|
||||
<%_ } _%>
|
||||
<%_ if (options.skipLibCheck) { _%>
|
||||
<%_ if (skipLibCheck) { _%>
|
||||
"skipLibCheck": true,
|
||||
<%_ } _%>
|
||||
"esModuleInterop": true,
|
||||
|
||||
Reference in New Issue
Block a user