Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add skipLibCheck option in the TS template (defaults to true) #5688

Merged
merged 1 commit into from Jul 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -12,6 +12,9 @@
<%_ if (options.allowJs) { _%>
"allowJs": true,
<%_ } _%>
<%_ if (options.skipLibCheck) { _%>
"skipLibCheck": true,
<%_ } _%>
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
Expand Down
6 changes: 6 additions & 0 deletions packages/@vue/cli-plugin-typescript/prompts.js
Expand Up @@ -48,6 +48,12 @@ const prompts = module.exports = [
type: `confirm`,
message: `Allow .js files to be compiled?`,
default: false
},
{
name: 'skipLibCheck',
type: `confirm`,
message: `Skip type checking of all declaration files (recommended for apps)?`,
default: true
}
]

Expand Down