File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,17 @@ lodash.mixin(s.exports());
14
14
export function genBase ( self ) {
15
15
self = self || this ;
16
16
17
- let yoCheckPromise = genUtils . runCmd ( 'yo --version' ) . then ( stdout => {
18
- if ( ! semver . satisfies ( semver . clean ( stdout ) , '>= 1.7.1' ) ) {
19
- throw new Error ( 'ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)' ) ;
20
- }
21
- } ) ;
17
+ let yoCheckPromise ;
18
+ if ( ! process . env . CI ) {
19
+ yoCheckPromise = genUtils . runCmd ( 'yo --version' ) . then ( stdout => {
20
+ if ( ! semver . satisfies ( semver . clean ( stdout ) , '>= 1.7.1' ) ) {
21
+ throw new Error ( 'ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)' ) ;
22
+ }
23
+ } ) ;
24
+ } else {
25
+ // CI won't have yo installed
26
+ yoCheckPromise = Promise . resolve ( ) ;
27
+ }
22
28
23
29
self . lodash = lodash ;
24
30
self . yoWelcome = yoWelcome ;
You can’t perform that action at this time.
0 commit comments