You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`Module not found: ${handler.name}`);
39
+
}
40
+
41
+
returnnull;
42
+
}
43
+
}
44
+
```
45
+
46
+
### Registering the Plugin
47
+
48
+
To register the `TaskHandlerLocationResolver` plugin, place it in the `plugins` directory (or the directory specified in your configuration) and ensure it is loaded by the CLI tool.
49
+
50
+
### Output
51
+
52
+
For the example above, the resolver checks if the task handler exists at the specified location or within the tasks directory.
53
+
If the handler is not found and `throwsIfNotFound` is set to `true`, an error is thrown.
54
+
55
+
## Summary
56
+
57
+
The `TaskHandlerLocationResolver` plugin provides a standardized way to resolve task handler locations within the system.
58
+
By implementing this interface, you can customize the module resolution logic to fit your specific needs.
0 commit comments