Skip to content

Commit

Permalink
fix(loadNpmTasks): load tasks relative to package location
Browse files Browse the repository at this point in the history
  • Loading branch information
redonkulus committed Mar 24, 2023
1 parent 8372e11 commit c27f5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grunt/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ task.loadNpmTasks = function(name) {
}

// Process task plugins.
var tasksdir = path.join(root, name, 'tasks');
var tasksdir = path.join(path.dirname(pkgfile), 'tasks');
if (grunt.file.exists(tasksdir)) {
loadTasks(tasksdir);
} else {
Expand Down

0 comments on commit c27f5d2

Please sign in to comment.