({
configRelPath,
testConfig,
options,
}: {
configRelPath: string;
options: any;
testConfig?: boolean;
})
| 19 | }; |
| 20 | |
| 21 | export const buildCommand = async ({ |
| 22 | configRelPath, |
| 23 | testConfig, |
| 24 | options, |
| 25 | }: { |
| 26 | configRelPath: string; |
| 27 | options: any; |
| 28 | testConfig?: boolean; |
| 29 | }): Promise<any> => { |
| 30 | const config = await getMitosisConfig(configRelPath); |
| 31 | if (!config) { |
| 32 | throw new Error(`No config file found for Mitosis.`); |
| 33 | } else if (testConfig) { |
| 34 | return config; |
| 35 | } |
| 36 | const targets = getTargets(config, options); |
| 37 | await build({ |
| 38 | ...config, |
| 39 | targets, |
| 40 | }); |
| 41 | }; |
| 42 | |
| 43 | const command: GluegunCommand = { |
| 44 | name: 'build', |
no test coverage detected
searching dependent graphs…