(config: BuildConfig)
| 43 | } |
| 44 | |
| 45 | async function buildRuntime(config: BuildConfig) { |
| 46 | const execOptions = { |
| 47 | win: { |
| 48 | manager: 'npm', |
| 49 | command: ['run', 'build'], |
| 50 | }, |
| 51 | other: { |
| 52 | manager: 'pnpm', |
| 53 | command: ['build'], |
| 54 | }, |
| 55 | }; |
| 56 | const isWindows = process.platform.includes('win32'); |
| 57 | const runOptions = isWindows ? execOptions.win : execOptions.other; |
| 58 | |
| 59 | const result = await execa(runOptions.manager, runOptions.command, { |
| 60 | stdout: 'inherit', |
| 61 | cwd: config.srcQwikCityDir, |
| 62 | }); |
| 63 | if (result.failed) { |
| 64 | panic(`tsc failed`); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | async function buildVite(config: BuildConfig) { |
| 69 | const entryPoints = [join(config.srcQwikCityDir, 'buildtime', 'vite', 'index.ts')]; |
no test coverage detected