Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: add skipLibCheck option in the ts template (defaults to `true…
…`) (#5688)
  • Loading branch information
sodatea committed Jul 16, 2020
1 parent 725ca41 commit c98f76a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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

0 comments on commit c98f76a

Please sign in to comment.