diff --git a/build-packages/magento-scripts/lib/util/exec-async-command.d.ts b/build-packages/magento-scripts/lib/util/exec-async-command.d.ts index 5eeaae05..af6d18b0 100644 --- a/build-packages/magento-scripts/lib/util/exec-async-command.d.ts +++ b/build-packages/magento-scripts/lib/util/exec-async-command.d.ts @@ -25,16 +25,6 @@ export function execAsyncSpawn ( options?: ExecAsyncSpawnOptions ): Promise<{ code: number, result: string }>; -/** - * Execute bash command - * @param command Bash command - * @param options Child process exec options ([docs](https://nodejs.org/dist/latest-v14.x/docs/api/child_process.html#child_process_child_process_exec_command_options_callback)) - */ -export function execAsync( - command: string, - options?: { encoding: BufferEncoding } & ExecOptions -): Promise - export function execCommandTask( command: string, options?: Omit, 'callback'> diff --git a/build-packages/magento-scripts/lib/util/exec-async.d.ts b/build-packages/magento-scripts/lib/util/exec-async.d.ts new file mode 100644 index 00000000..9bfc530f --- /dev/null +++ b/build-packages/magento-scripts/lib/util/exec-async.d.ts @@ -0,0 +1,10 @@ +/* eslint-disable max-len */ +/** + * Execute bash command + * @param command Bash command + * @param options Child process exec options ([docs](https://nodejs.org/dist/latest-v14.x/docs/api/child_process.html#child_process_child_process_exec_command_options_callback)) + */ +export function execAsync( + command: string, + options?: { encoding: BufferEncoding } & ExecOptions +): Promise diff --git a/build-packages/magento-scripts/lib/util/open-browser.js b/build-packages/magento-scripts/lib/util/open-browser.js index 950cd881..850b67ae 100755 --- a/build-packages/magento-scripts/lib/util/open-browser.js +++ b/build-packages/magento-scripts/lib/util/open-browser.js @@ -1,4 +1,4 @@ -const { execAsync } = require('./exec-async-command'); +const { execAsync } = require('./exec-async'); const openBrowser = async (url) => { const start = process.platform === 'darwin' ? 'open' : 'xdg-open';