Skip to content

root

Contains utility functions for executing commands from the root folder of a project, resolving paths relative to the root.

Interface Description
ResolvePathFromRootParams Parameters for resolvePathFromRoot.
ResolvePathFromRootSafeParams Parameters for resolvePathFromRootSafe.
ToRelativeFromRootParams Parameters for toRelativeFromRoot.
Function Description
execFromRoot Executes a command from the root folder of the project.
getRootFolder Retrieves the root folder of the project.
resolvePathFromRoot Resolves a path relative to the root folder of the project.
resolvePathFromRootSafe Resolves a path relative to the root folder, returning the resolved path or the original path if it does not exist.
toRelativeFromRoot Converts an absolute path to a relative path from the root folder of the project.
Type Description
ExecFromRootOptions Options for execFromRoot.