Skip to content

Commit c27f5d2

Browse files
committed
fix(loadNpmTasks): load tasks relative to package location
1 parent 8372e11 commit c27f5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grunt/task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ task.loadNpmTasks = function(name) {
409409
}
410410

411411
// Process task plugins.
412-
var tasksdir = path.join(root, name, 'tasks');
412+
var tasksdir = path.join(path.dirname(pkgfile), 'tasks');
413413
if (grunt.file.exists(tasksdir)) {
414414
loadTasks(tasksdir);
415415
} else {

0 commit comments

Comments
 (0)