grunt-shell
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "grunt-shell", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Run shell commands", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -7,3 +7,3 @@ # grunt-shell [![Build Status](https://travis-ci.org/sindresorhus/grunt-shell.svg?branch=master)](https://travis-ci.org/sindresorhus/grunt-shell) | ||
**Use [Stack Overflow](http://stackoverflow.com/questions/tagged/gruntjs) for support questions.** | ||
**Use [Stack Overflow](https://stackoverflow.com/questions/tagged/gruntjs) for support questions.** | ||
@@ -193,2 +193,9 @@ --- | ||
### cwd | ||
Type: `string` | ||
Shortcut. Same as `options.execOptions.cwd` (see below). | ||
## Options | ||
@@ -229,3 +236,3 @@ | ||
Set `stdin` to [act as a raw device](http://nodejs.org/api/tty.html#tty_rs_setrawmode_mode). | ||
Set `stdin` to [act as a raw device](https://nodejs.org/api/tty.html#tty_readstream_setrawmode_mode). | ||
@@ -245,3 +252,3 @@ ### callback(err, stdout, stderr, cb) | ||
Execute local binaries by name like [`$ npm run-script`](http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/). | ||
Execute local binaries by name like [`$ npm run-script`](https://www.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/). | ||
@@ -248,0 +255,0 @@ ### execOptions |
@@ -39,2 +39,6 @@ 'use strict'; | ||
if (this.data.cwd) { | ||
opts.execOptions.cwd = this.data.cwd; | ||
} | ||
const cp = exec(cmd, opts.execOptions, (err, stdout, stderr) => { | ||
@@ -41,0 +45,0 @@ if (typeof opts.callback === 'function') { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8756
69
269