@@ -12,12 +12,16 @@ export async function componentizeCmd(jsSource, opts) {
1212 worldName : opts . worldName ,
1313 runtimeArgs : opts . runtimeArgs ,
1414 enableAot : opts . aot ,
15+ engine : opts . engine ,
1516 disableFeatures : opts . disable ,
1617 preview2Adapter : opts . preview2Adapter ,
1718 debugBindings : opts . debugBindings ,
1819 debugBuild : opts . useDebugBuild ,
1920 enableWizerLogging : opts . enableWizerLogging ,
2021 wizerBin : opts . wizerBin ,
22+ wevalBin : opts . wevalBin ,
23+ aotCache : opts . aotCacheDir ,
24+ aotMinStackSizeBytes : opts . aotMinStackSize ,
2125 } ) ;
2226 await writeFile ( opts . out , component ) ;
2327}
@@ -31,6 +35,10 @@ program
3135 . option ( '-n, --world-name <name>' , 'WIT world to build' )
3236 . option ( '--runtime-args <string>' , 'arguments to pass to the runtime' )
3337 . option ( '--aot' , 'enable AOT compilation' )
38+ . option (
39+ '--engine <path>' ,
40+ 'provide a custom ComponentizeJS engine build path' ,
41+ )
3442 . addOption (
3543 new Option ( '-d, --disable <feature...>' , 'disable WASI features' ) . choices (
3644 DEFAULT_FEATURES ,
@@ -50,6 +58,18 @@ program
5058 '--wizer-bin <path>' ,
5159 'specify a path to a local wizer binary' ,
5260 )
61+ . option (
62+ '--weval-bin <path>' ,
63+ 'specify a path to a local weval binary' ,
64+ )
65+ . option (
66+ '--aot-cache-dir <path>' ,
67+ 'specify a custom AOT weval cache path' ,
68+ )
69+ . option (
70+ '--aot-min-stack-size <bytes>' ,
71+ 'set the minimum stack size (RUST_MIN_STACK) for weval AOT compilation' ,
72+ )
5373 . requiredOption ( '-o, --out <out>' , 'output component file' )
5474 . action ( asyncAction ( componentizeCmd ) ) ;
5575
0 commit comments