@netlify/run-utils 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/main.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/run-utils",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Utility for running commands inside Netlify Build",
5
5
  "type": "module",
6
6
  "exports": "./src/main.js",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "license": "MIT",
47
47
  "dependencies": {
48
- "execa": "^5.1.1"
48
+ "execa": "^6.0.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "ava": "^3.15.0",
package/src/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import process from 'process'
2
2
 
3
- import execa from 'execa'
3
+ import { execa, execaCommand } from 'execa'
4
4
 
5
5
  // Run a command, with arguments being an array
6
6
  export const run = function (file, args, options) {
@@ -14,7 +14,7 @@ export const run = function (file, args, options) {
14
14
  // Run a command, with file + arguments being a single string
15
15
  export const runCommand = function (command, options) {
16
16
  const optionsA = { ...DEFAULT_OPTIONS, ...options }
17
- const childProcess = execa.command(command, optionsA)
17
+ const childProcess = execaCommand(command, optionsA)
18
18
  redirectOutput(childProcess, optionsA)
19
19
  return childProcess
20
20
  }