From 310f72d0c242f5167a725f964df304c406122f45 Mon Sep 17 00:00:00 2001 From: Marcelo Boveto Shima Date: Fri, 19 Feb 2021 17:17:07 -0300 Subject: [PATCH] Fix spawn destinationRoot. --- lib/actions/spawn-command.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/actions/spawn-command.js b/lib/actions/spawn-command.js index 7d714fd7..771f0941 100644 --- a/lib/actions/spawn-command.js +++ b/lib/actions/spawn-command.js @@ -15,7 +15,7 @@ const spawnCommand = module.exports; * @param {object} [opt] any cross-spawn options * @return {String} spawned process reference */ -spawnCommand.spawnCommand = (command, args, opt) => { +spawnCommand.spawnCommand = function (command, args, opt) { return spawn(command, args, { stdio: 'inherit', cwd: this.destinationRoot(), @@ -31,7 +31,7 @@ spawnCommand.spawnCommand = (command, args, opt) => { * @param {object} [opt] any cross-spawn options * @return {String} spawn.sync result */ -spawnCommand.spawnCommandSync = (command, args, opt) => { +spawnCommand.spawnCommandSync = function (command, args, opt) { return spawn.sync(command, args, { stdio: 'inherit', cwd: this.destinationRoot(),