Skip to content

Commit 560c445

Browse files
committed
fix: more friendly error message when the CLI version is too low
1 parent 1860875 commit 560c445

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generator/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ const fs = require('fs')
22
const path = require('path')
33

44
module.exports = (api) => {
5+
// need the CLI to support the `prune` option of `extendPackage`
6+
api.assertCliVersion('>= 4.2.3')
7+
58
api.extendPackage({
69
dependencies: {
710
vue: '^3.0.0-beta.1'

0 commit comments

Comments
 (0)