-
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a25ef9
commit b492ad2
Showing
4 changed files
with
224 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { stdout, sync } from 'execa'; | ||
import * as execa from 'execa'; | ||
|
||
export const osascript = (filePath: string, ...args: string[]): Promise<string> => | ||
stdout('osascript', [filePath, ...args]); | ||
execa('osascript', [filePath, ...args]).then(({ stdout }) => stdout); | ||
|
||
export const osascriptSync = (filePath: string, ...args: string[]): string => | ||
sync('osascript', [filePath, ...args]).stdout; | ||
execa.sync('osascript', [filePath, ...args]).stdout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
execa v2.0.4 also increases the
maxBuffer
default value from10 MB
to100 MB
which might help in addition to the batching you've implemented.sindresorhus/execa@76c2e07