Skip to content

Commit 82a1770

Browse files
committed
cleanup #102
1 parent 058629c commit 82a1770

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
"dependencies": {
3333
"chalk": "^1.0.0",
3434
"npm-run-path": "^1.0.0",
35-
"object-assign": "^4.0.0",
36-
"path-key": "^1.0.0"
35+
"object-assign": "^4.0.0"
3736
},
3837
"devDependencies": {
3938
"grunt": "^0.4.5",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Lets you override the default callback with your own.
232232
Type: `boolean`<br>
233233
Default: `false`
234234

235-
When set to `true` will execute local binaries by name like npm run script
235+
Execute local binaries by name like [npm run-script](http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/).
236236

237237
### execOptions
238238

tasks/shell.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ var exec = require('child_process').exec;
33
var chalk = require('chalk');
44
var npmRunPath = require('npm-run-path');
55
var objectAssign = require('object-assign');
6-
var pathKey = require('path-key');
76

87
module.exports = function (grunt) {
98
grunt.registerMultiTask('shell', 'Run shell commands', function () {
@@ -30,7 +29,7 @@ module.exports = function (grunt) {
3029

3130
if (options.preferLocal === true) {
3231
options.execOptions.env = options.execOptions.env || objectAssign({}, process.env);
33-
options.execOptions.env[pathKey()] = npmRunPath(options.execOptions.env);
32+
options.execOptions.env.PATH = npmRunPath({path: options.execOptions.env.PATH});
3433
}
3534

3635
var cp = exec(cmd, options.execOptions, function (err, stdout, stderr) {

0 commit comments

Comments
 (0)