@@ -19,7 +19,7 @@ const {
19
19
models,
20
20
globs,
21
21
output : clientsDir ,
22
- noProtocolTest ,
22
+ noPrivateClients ,
23
23
s : serverOnly ,
24
24
} = yargs
25
25
. alias ( "m" , "models" )
@@ -33,9 +33,9 @@ const {
33
33
. string ( "o" )
34
34
. describe ( "o" , "The output directory for built clients" )
35
35
. default ( "o" , SDK_CLIENTS_DIR )
36
- . alias ( "n" , "noProtocolTest " )
36
+ . alias ( "n" , "noPrivateClients " )
37
37
. boolean ( "n" )
38
- . describe ( "n" , "Disable generating protocol test files " )
38
+ . describe ( "n" , "Disable generating private clients " )
39
39
. alias ( "s" , "server-artifacts" )
40
40
. boolean ( "s" )
41
41
. describe ( "s" , "Generate server artifacts instead of client ones" )
@@ -58,17 +58,17 @@ const {
58
58
}
59
59
60
60
await generateClients ( models || globs ) ;
61
- if ( ! noProtocolTest ) await generateProtocolTests ( ) ;
61
+ if ( ! noPrivateClients ) await generateProtocolTests ( ) ;
62
62
63
63
await eslintFixCode ( ) ;
64
64
await prettifyCode ( CODE_GEN_SDK_OUTPUT_DIR ) ;
65
- if ( ! noProtocolTest ) await prettifyCode ( CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR ) ;
65
+ if ( ! noPrivateClients ) await prettifyCode ( CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR ) ;
66
66
67
67
await copyToClients ( CODE_GEN_SDK_OUTPUT_DIR , clientsDir ) ;
68
- if ( ! noProtocolTest ) await copyToClients ( CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR , PROTOCOL_TESTS_CLIENTS_DIR ) ;
68
+ if ( ! noPrivateClients ) await copyToClients ( CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR , PROTOCOL_TESTS_CLIENTS_DIR ) ;
69
69
70
70
emptyDirSync ( CODE_GEN_SDK_OUTPUT_DIR ) ;
71
- if ( ! noProtocolTest ) emptyDirSync ( CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR ) ;
71
+ if ( ! noPrivateClients ) emptyDirSync ( CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR ) ;
72
72
emptyDirSync ( TEMP_CODE_GEN_INPUT_DIR ) ;
73
73
74
74
rmdirSync ( TEMP_CODE_GEN_INPUT_DIR ) ;
0 commit comments