Skip to content

Commit e9d01eb

Browse files
pksunkarayyx990803
authored andcommitted
fix(create): Commands added by plugin (through preset) won't have description in README' (vuejs#1910)
1 parent a0012c4 commit e9d01eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/@vue/cli/lib/util/generateReadme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const descriptions = {
99

1010
function printScripts (pkg, packageManager) {
1111
return Object.keys(pkg.scripts).map(key => {
12+
if (!descriptions[key]) return ''
1213
return [
1314
`\n### ${descriptions[key]}`,
1415
'```',

0 commit comments

Comments
 (0)