blob: 7c012e86ae30c4a648e5b01308d72a04ccbe83d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { execa } from 'execa';
/** Returns a process running the Astro CLI. */
export function cli(/** @type {string[]} */ ...args) {
const spawned = execa('npx', ['astro', ...args], {
env: { ASTRO_TELEMETRY_DISABLED: true },
});
spawned.stdout.setEncoding('utf8');
return spawned;
}
|