Skip to content

Commit

Permalink
fix(deps): update execa@^6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Jun 1, 2022
1 parent 2750a3d commit 659c85c
Show file tree
Hide file tree
Showing 9 changed files with 346 additions and 64 deletions.
2 changes: 1 addition & 1 deletion lib/execGit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debug from 'debug'
import execa from 'execa'
import { execa } from 'execa'

const debugLog = debug('lint-staged:execGit')

Expand Down
4 changes: 2 additions & 2 deletions lib/resolveTaskFn.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { redBright, dim } from 'colorette'
import execa from 'execa'
import { execa, execaCommand } from 'execa'
import debug from 'debug'
import { parseArgsStringToArgv } from 'string-argv'
import pidTree from 'pidtree'
Expand Down Expand Up @@ -139,7 +139,7 @@ export const resolveTaskFn = ({

return async (ctx = getInitialState()) => {
const execaChildProcess = shell
? execa.command(isFn ? command : `${command} ${files.join(' ')}`, execaOptions)
? execaCommand(isFn ? command : `${command} ${files.join(' ')}`, execaOptions)
: execa(cmd, isFn ? args : args.concat(files), execaOptions)

const quitInterruptCheck = interruptExecutionOnError(ctx, execaChildProcess)
Expand Down
Loading

0 comments on commit 659c85c

Please sign in to comment.