script.js
This file
Path
lib/methods/script.js
15 lines · 644 bytes · JavaScript
Last changed by
Rename files (#977)ehmickybefore adoption4b2e316
History of this fileTake it
Rename files (#977)ehmickybefore adoption4b2e316
lines 1–15why, one step back1export const setScriptSync = (boundExeca, createNested, boundOptions) => {2 boundExeca.sync = createNested(mapScriptSync, boundOptions);3 boundExeca.s = boundExeca.sync;4};56export const mapScriptAsync = ({options}) => getScriptOptions(options);7const mapScriptSync = ({options}) => ({...getScriptOptions(options), isSync: true});89const getScriptOptions = options => ({options: {...getScriptStdinOption(options), ...options}});1011const getScriptStdinOption = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined12 ? {stdin: 'inherit'}13 : {};1415export const deepScriptOptions = {preferLocal: true};