From 1159f250c58c59aeedf7ada9df5362ba336af028 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 25 Sep 2016 14:25:25 +0700 Subject: [PATCH] change `preferLocal` option to be `true` by default --- readme.md | 2 +- tasks/shell.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 7999ea6..a0acabf 100644 --- a/readme.md +++ b/readme.md @@ -237,7 +237,7 @@ Lets you override the default callback with your own. ### preferLocal Type: `boolean`
-Default: `false` +Default: `true` Execute local binaries by name like [`$ npm run-script`](http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/). diff --git a/tasks/shell.js b/tasks/shell.js index 35a8425..9f80ca8 100644 --- a/tasks/shell.js +++ b/tasks/shell.js @@ -12,7 +12,7 @@ module.exports = grunt => { stdin: true, failOnError: true, stdinRawMode: false, - preferLocal: false, + preferLocal: true, execOptions: { env: null }