(jsSource, opts)
| 6 | import { resolve } from 'node:path'; |
| 7 | |
| 8 | export async function componentizeCmd(jsSource, opts) { |
| 9 | const { component } = await componentize({ |
| 10 | sourcePath: jsSource, |
| 11 | witPath: resolve(opts.wit), |
| 12 | worldName: opts.worldName, |
| 13 | runtimeArgs: opts.runtimeArgs, |
| 14 | enableAot: opts.aot, |
| 15 | engine: opts.engine, |
| 16 | disableFeatures: opts.disable, |
| 17 | preview2Adapter: opts.preview2Adapter, |
| 18 | debugBindings: opts.debugBindings, |
| 19 | debugBuild: opts.useDebugBuild, |
| 20 | enableWizerLogging: opts.enableWizerLogging, |
| 21 | wizerBin: opts.wizerBin, |
| 22 | wevalBin: opts.wevalBin, |
| 23 | aotCache: opts.aotCacheDir, |
| 24 | aotMinStackSizeBytes: opts.aotMinStackSize, |
| 25 | }); |
| 26 | await writeFile(opts.out, component); |
| 27 | } |
| 28 | |
| 29 | program |
| 30 | .version('0.21.0') |
nothing calls this directly
no test coverage detected