nested-sync.js
This file
Path
test/fixtures/nested-sync.js
11 lines · 314 bytes · JavaScript
Last changed by
Upgrade xo (#980)ehmickybefore adoptionccfa412
History of this fileTake it
123456789101112#!/usr/bin/env nodeimport process from 'node:process';import {execaSync} from '../../index.js';
const [options, file, ...commandArguments] = process.argv.slice(2);try { const result = execaSync(file, commandArguments, JSON.parse(options)); process.send({result});} catch (error) { process.send({error});}