@dotenvx/dotenvx 0.20.0 → 0.20.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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.20.0",
2
+ "version": "0.20.1",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -39,7 +39,11 @@ const executeCommand = async function (commandArgs, env) {
39
39
  }
40
40
 
41
41
  try {
42
- commandProcess = execa(commandArgs[0], commandArgs.slice(1), {
42
+ const systemCommandPath = execa.sync('which', [commandArgs[0]]).stdout
43
+ logger.debug(`system command path [${systemCommandPath}]`)
44
+
45
+ // commandProcess = execa(commandArgs[0], commandArgs.slice(1), {
46
+ commandProcess = execa(systemCommandPath, commandArgs.slice(1), {
43
47
  stdio: 'inherit',
44
48
  env: { ...process.env, ...env }
45
49
  })