mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
12 lines
312 B
JavaScript
12 lines
312 B
JavaScript
import { execa } from 'execa';
|
|
|
|
const api = execa('npm', ['run', 'dev-api']);
|
|
api.stdout.pipe(process.stdout);
|
|
api.stderr.pipe(process.stderr);
|
|
|
|
const build = execa('yarn', ['astro', 'build', '--experimental-ssr']);
|
|
build.stdout.pipe(process.stdout);
|
|
build.stderr.pipe(process.stderr);
|
|
await build;
|
|
|
|
api.kill();
|