lib/modules: specify modulesPath

`specialArgs.modulesPath` can be used to allow users to manually
import modules relative to our `./modules` directory.

It is also used by the module system to provide a base path for
relative `disabledModules` paths.
This commit is contained in:
Matt Sturgeon 2025-01-17 00:28:36 +00:00
parent b5efe91c52
commit 16662760a9
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -36,6 +36,7 @@ in
}
];
specialArgs = {
modulesPath = ../modules;
# TODO: deprecate `helpers`
helpers = self;
} // extraSpecialArgs;