File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,19 @@ import { Client } from './vcs';
7
7
8
8
const NO_VCS_WARNING = `Using EAS CLI without version control system is not recommended, use this mode only if you know what you are doing.` ;
9
9
10
+ let wasNoVcsWarningPrinted = false ;
11
+
10
12
export function resolveVcsClient ( requireCommit : boolean = false ) : Client {
11
13
if ( process . env . EAS_NO_VCS ) {
12
14
if ( process . env . NODE_ENV !== 'test' ) {
13
- // This log might be printed before cli arguments are evaluated,
14
- // so it needs to go to stderr in case command is run in JSON
15
- // only mode.
16
- // eslint-disable-next-line no-console
17
- console . error ( chalk . yellow ( NO_VCS_WARNING ) ) ;
15
+ if ( ! wasNoVcsWarningPrinted ) {
16
+ // This log might be printed before cli arguments are evaluated,
17
+ // so it needs to go to stderr in case command is run in JSON
18
+ // only mode.
19
+ // eslint-disable-next-line no-console
20
+ console . error ( chalk . yellow ( NO_VCS_WARNING ) ) ;
21
+ wasNoVcsWarningPrinted = true ;
22
+ }
18
23
}
19
24
return new NoVcsClient ( ) ;
20
25
}
You can’t perform that action at this time.
0 commit comments