MCPcopy Create free account
hub / github.com/QwikDev/qwik / buildRuntime

Function buildRuntime

scripts/qwik-city.ts:45–66  ·  view source on GitHub ↗
(config: BuildConfig)

Source from the content-addressed store, hash-verified

43}
44
45async 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
68async function buildVite(config: BuildConfig) {
69 const entryPoints = [join(config.srcQwikCityDir, 'buildtime', 'vite', 'index.ts')];

Callers 1

buildQwikCityFunction · 0.85

Calls 1

panicFunction · 0.90

Tested by

no test coverage detected