Skip to content

Commit cb5f117

Browse files
authored
fix(typescript): remove getPrompts function in prompts.js (#6053)
1 parent cb58c5f commit cb5f117

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// these prompts are used if the plugin is late-installed into an existing
22
// project and invoked by `vue invoke`.
33

4-
const prompts = module.exports = [
4+
module.exports = [
55
{
66
name: `classComponent`,
77
type: `confirm`,
@@ -32,11 +32,3 @@ const prompts = module.exports = [
3232
default: true
3333
}
3434
]
35-
36-
// in RC6+ the export can be function, but that would break invoke for RC5 and
37-
// below, so this is a temporary compatibility hack until we release stable.
38-
// TODO just export the function in 3.0.0
39-
module.exports.getPrompts = pkg => {
40-
prompts[2].when = () => !('@vue/cli-plugin-eslint' in (pkg.devDependencies || {}))
41-
return prompts
42-
}

0 commit comments

Comments
 (0)