diff --git a/index.js b/index.js index ba16d5a..117cdf6 100644 --- a/index.js +++ b/index.js @@ -7,8 +7,8 @@ var execSync = (function() { return function(cmd) { return child_process.execSync(cmd); }; } else { try { // Try using fallback package if available - var execSync = require("execSync"); - return function(cmd) { return execSync.exec(cmd).stdout; }; + var execSync = require("sync-exec"); + return function(cmd) { return execSync(cmd).stdout; }; } catch(e) {} } diff --git a/package.json b/package.json index 2546e64..9bf4911 100644 --- a/package.json +++ b/package.json @@ -16,5 +16,5 @@ , "dependencies": { "iconv-lite": "^0.4.8" } , "optionalDependencies": - { "execSync": "~1.0.0" } + { "sync-exec": "~0.6.x" } }