Skip to content
Myr

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 file

Take it

Improve `verbose` option (#883)ehmickybefore adoption7d0943f

lines 1–4why, one step back
1#!/usr/bin/env node
2import process from 'node:process';3import {execaSync} from '../../index.js';4

Upgrade xo (#980)ehmickybefore adoptionccfa412

line 5why, one step back
5const [options, file, ...commandArguments] = process.argv.slice(2);

Add tests for `node:worker_threads` (#964)ehmickybefore adoptiona1cd3cf

line 6why, one step back
6try {

Upgrade xo (#980)ehmickybefore adoptionccfa412

line 7why, one step back
7 const result = execaSync(file, commandArguments, JSON.parse(options));

Add tests for `node:worker_threads` (#964)ehmickybefore adoptiona1cd3cf

lines 8–11why, one step back
8 process.send({result});
9} catch (error) {10 process.send({error});11}