[Pkg-javascript-commits] [grunt] 01/02: revert direct change by Harish

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Thu Nov 23 15:48:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository grunt.

commit d616f834defc4688e0ccce7003a75164f222198b
Author: Pirate Praveen <praveen at debian.org>
Date:   Thu Nov 23 21:09:24 2017 +0530

    revert direct change by Harish
---
 lib/grunt/task.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/grunt/task.js b/lib/grunt/task.js
index 4f8e625..f31ff2e 100644
--- a/lib/grunt/task.js
+++ b/lib/grunt/task.js
@@ -4,7 +4,6 @@ var grunt = require('../grunt');
 
 // Nodejs libs.
 var path = require('path');
-var fs = require('fs');
 
 // Extend generic "task" util lib.
 var parent = grunt.util.task.create();
@@ -371,9 +370,9 @@ task.loadTasks = function(tasksdir) {
 
 // Load tasks and handlers from a given locally-installed Npm module (installed
 // relative to the base dir).
-task.loadNpmTasks = function(name, root) {
+task.loadNpmTasks = function(name) {
   loadTasksMessage('"' + name + '" local Npm module');
-  root = root || [ 'node_modules', '/usr/lib/nodejs'].map( v=> path.resolve(v) ).find(fs.existsSync);
+  var root = path.resolve('node_modules');
   var pkgfile = path.join(root, name, 'package.json');
   var pkg = grunt.file.exists(pkgfile) ? grunt.file.readJSON(pkgfile) : {keywords: []};
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/grunt.git



More information about the Pkg-javascript-commits mailing list