Skip to content

Commit c98f76a

Browse files
authored
feat: add skipLibCheck option in the ts template (defaults to true) (#5688)
1 parent 725ca41 commit c98f76a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<%_ if (options.allowJs) { _%>
1313
"allowJs": true,
1414
<%_ } _%>
15+
<%_ if (options.skipLibCheck) { _%>
16+
"skipLibCheck": true,
17+
<%_ } _%>
1518
"esModuleInterop": true,
1619
"allowSyntheticDefaultImports": true,
1720
"sourceMap": true,

packages/@vue/cli-plugin-typescript/prompts.js

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ const prompts = module.exports = [
4848
type: `confirm`,
4949
message: `Allow .js files to be compiled?`,
5050
default: false
51+
},
52+
{
53+
name: 'skipLibCheck',
54+
type: `confirm`,
55+
message: `Skip type checking of all declaration files (recommended for apps)?`,
56+
default: true
5157
}
5258
]
5359

0 commit comments

Comments
 (0)