Skip to content
Myr

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 file

Take it

Allow template strings with all methods (#933)ehmickybefore adoption8074d85

lines 1–5why, one step back
1import {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';5

Add `ExecaError` and `ExecaSyncError` classes (#911)ehmickybefore adoptionfc01815

line 6why, one step back
6export {ExecaError, ExecaSyncError} from './lib/return/cause.js';

Allow template strings with all methods (#933)ehmickybefore adoption8074d85

lines 7–13why, one step back
7
8export 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);