index.js
This file
Path
index.js
13 lines · 678 bytes · JavaScript
Last changed by
Allow template strings with all methods (#933)ehmickybefore adoption8074d85
History of this fileTake it
Allow template strings with all methods (#933)ehmickybefore adoption8074d85
lines 1–5why, one step back1import {createExeca} from './lib/arguments/create.js';2import {mapCommandAsync, mapCommandSync} from './lib/command.js';3import {mapNode} from './lib/arguments/node.js';4import {mapScriptAsync, setScriptSync, deepScriptOptions} from './lib/script.js';5Add `ExecaError` and `ExecaSyncError` classes (#911)ehmickybefore adoptionfc01815
line 6why, one step back6export {ExecaError, ExecaSyncError} from './lib/return/cause.js';Allow template strings with all methods (#933)ehmickybefore adoption8074d85
lines 7–13why, one step back78export const execa = createExeca(() => ({}));9export const execaSync = createExeca(() => ({isSync: true}));10export const execaCommand = createExeca(mapCommandAsync);11export const execaCommandSync = createExeca(mapCommandSync);12export const execaNode = createExeca(mapNode);13export const $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);