Skip to main content

Type Alias: DirectoryAsModuleOpts

DirectoryAsModuleOpts: object

Type declaration

engineVersion?

optional engineVersion: string

The engine version to upgrade to.

sourceRootPath?

optional sourceRootPath: string

An optional subpath of the directory which contains the module's configuration file.

This is needed when the module code is in a subdirectory but requires parent directories to be loaded in order to execute. For example, the module source code may need a go.mod, project.toml, package.json, etc. file from a parent directory.

If not set, the module source code is loaded from the root of the directory.