Skip to content

Commit ccbcc0d

Browse files
authored
fix: fix skipLibCheck default value for vue create (#5731)
1 parent 467e577 commit ccbcc0d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/@vue/cli-plugin-typescript/generator/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = (api, {
44
classComponent,
55
tsLint,
66
lintOn = [],
7+
skipLibCheck = true,
78
convertJsToTs,
89
allowJs
910
}, rootOptions, invoking) => {
@@ -90,6 +91,7 @@ module.exports = (api, {
9091
}
9192

9293
api.render('./template', {
94+
skipLibCheck,
9395
hasMocha: api.hasPlugin('unit-mocha'),
9496
hasJest: api.hasPlugin('unit-jest')
9597
})

packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<%_ if (options.allowJs) { _%>
1313
"allowJs": true,
1414
<%_ } _%>
15-
<%_ if (options.skipLibCheck) { _%>
15+
<%_ if (skipLibCheck) { _%>
1616
"skipLibCheck": true,
1717
<%_ } _%>
1818
"esModuleInterop": true,

0 commit comments

Comments
 (0)