diff --git a/shelljs/index.d.ts b/shelljs/index.d.ts index 5e812947fd..a8f2196dab 100644 --- a/shelljs/index.d.ts +++ b/shelljs/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for ShellJS v0.6.0 +// Type definitions for ShellJS v0.7.6 // Project: http://shelljs.org // Definitions by: Niklas Mollenhauer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -466,7 +466,7 @@ export interface ExecCallback { (code: number, stdout: string, stderr: string): any; } -export interface ExecOptions { +export interface ExecOptions extends child.ExecOptions { silent?: boolean; async?: boolean; } diff --git a/shelljs/shelljs-tests.ts b/shelljs/shelljs-tests.ts index a78b8e44e1..6c155e5aee 100644 --- a/shelljs/shelljs-tests.ts +++ b/shelljs/shelljs-tests.ts @@ -97,7 +97,7 @@ var pid = asyncVersion3.pid; shell.exec("node --version", { silent: true }, function (code, stdout, stderr) { var version = stdout; }); -shell.exec("node --version", { silent: true, async: true }, function (code, stdout, stderr) { +shell.exec("node --version", { silent: true, async: true, cwd: '/usr/local/bin' }, function (code, stdout, stderr) { var version = stdout; }); shell.exec("node --version", function (code, stdout, stderr) {