nested-transform.js
This file
Path
test/fixtures/nested-transform.js
13 lines · 463 bytes · JavaScript
Last changed by
Add support for `buffer: false` to `execaSync()` (#953)ehmickybefore adoptiond0052ac
History of this fileTake it
1234567891011121314#!/usr/bin/env nodeimport process from 'node:process';import {execa, execaSync} from '../../index.js';import {generatorsMap} from '../helpers/map.js';
const [optionsString, file, ...args] = process.argv.slice(2);const {type, isSync, ...options} = JSON.parse(optionsString);const newOptions = {stdout: generatorsMap[type].uppercase(), ...options};if (isSync === 'true') { execaSync(file, args, newOptions);} else { await execa(file, args, newOptions);}