Skip to content

Commit cd91c0f

Browse files
cexbrayathaoqunjiang
authored andcommitted
docs: remove run for yarn commands in readme (#4551)
1 parent 9e4592f commit cd91c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function printScripts (pkg, packageManager) {
1212
return [
1313
`\n### ${descriptions[key]}`,
1414
'```',
15-
`${packageManager} run ${key}`,
15+
`${packageManager} ${packageManager !== 'yarn' ? 'run ' : ''}${key}`,
1616
'```',
1717
''
1818
].join('\n')

0 commit comments

Comments
 (0)