(config: BuildConfig)
| 5 | const PACKAGE = 'qwik-react'; |
| 6 | |
| 7 | export async function buildQwikReact(config: BuildConfig) { |
| 8 | const input = join(config.packagesDir, PACKAGE); |
| 9 | |
| 10 | const result = await execa('pnpm', ['build'], { |
| 11 | stdout: 'inherit', |
| 12 | cwd: input, |
| 13 | }); |
| 14 | |
| 15 | if (result.failed) { |
| 16 | panic(`tsc failed`); |
| 17 | } |
| 18 | await copyDir( |
| 19 | config, |
| 20 | join(config.dtsDir, 'packages', 'qwik-react', 'src'), |
| 21 | join(input, 'lib', 'types') |
| 22 | ); |
| 23 | console.log(`⚛️ ${PACKAGE}`); |
| 24 | } |