@@ -24,13 +24,13 @@ export async function runCompile(): Promise<void> {
24
24
log . invisible ( 'checking for required properties in config' ) ;
25
25
errorChecks ( [
26
26
[ ! ( 'compile' in config ) , 'syxconfig.json.compile: Missing' ] ,
27
- [ ! arg . getArgument ( 'root' ) && ! arg . getArgument ( 'r' ) && 'compile' in config && ! ( 'root' in config . compile ) , 'syxconfig.json.compile.root: Missing' ] ,
28
- [ ! arg . getArgument ( 'out' ) && ! arg . getArgument ( 'o' ) && 'compile' in config && ! ( 'out' in config . compile ) , 'syxconfig.json.compile.out: Missing' ] ,
29
- [ ! arg . getArgument ( 'language' ) && ! arg . getArgument ( 'lang' ) && ! arg . getArgument ( 'lng' ) && ! arg . getArgument ( 'l' ) && 'compile' in config && ! ( 'format' in config . compile ) , 'syxconfig.json.compile.format: Missing' ]
27
+ [ ! arg . getArgument ( 'root' ) && ! arg . getArgument ( 'r' ) && 'compile' in config && ! ( 'root' in config . compile ) , 'syxconfig.json.compile.root: Missing' ] ,
28
+ [ ! arg . getArgument ( 'out' ) && ! arg . getArgument ( 'o' ) && 'compile' in config && ! ( 'out' in config . compile ) , 'syxconfig.json.compile.out: Missing' ] ,
29
+ [ ! arg . getArgument ( 'language' ) && ! arg . getArgument ( 'lang' ) && ! arg . getArgument ( 'lng' ) && ! arg . getArgument ( 'l' ) && 'compile' in config && ! ( 'format' in config . compile ) , 'syxconfig.json.compile.format: Missing' ]
30
30
] ) ;
31
31
32
32
log . invisible ( 'creating compiler instance' ) ;
33
- const compiler = new SyntaxScriptCompiler ( arg . getArgument ( 'root' ) ?? arg . getArgument ( 'r' ) ?? config . compile . root , arg . getArgument ( 'out' ) ?? arg . getArgument ( 'o' ) ?? config . compile . out , arg . getArgument ( 'language' ) ?? arg . getArgument ( 'lang' ) ?? arg . getArgument ( 'lng' ) ?? arg . getArgument ( 'l' ) ?? config . compile . format ) ;
33
+ const compiler = new SyntaxScriptCompiler ( arg . getArgument ( 'root' ) ?? arg . getArgument ( 'r' ) ?? config . compile . root , arg . getArgument ( 'out' ) ?? arg . getArgument ( 'o' ) ?? config . compile . out , arg . getArgument ( 'language' ) ?? arg . getArgument ( 'lang' ) ?? arg . getArgument ( 'lng' ) ?? arg . getArgument ( 'l' ) ?? config . compile . format ) ;
34
34
35
35
log . info ( 'Starting compilation' ) ;
36
36
timer . mark ( 'compilerstart' ) ;
0 commit comments