Proxy for working with caches
CWD to run the process into
Should exit when STDERR is not empty
Cached version of the Find Root function
Cached version of the Parse Workspaces function
Paths to be excluded from Path Normalization
Extend a logging naming with an extension string
The Logging Naming
The extension string
Normalize a Logging Naming by applying the prefix to the name, if possible
Logging Naming to be normalized
Normalize path by replacing slashes with naming separator stripping excluded path segments and removing extensions
Path to be normalized
Generate a logging name based on user input
The parser to use when generating a logging name
The input used for generation
Generate a Logger Naming Convention based on the current file and package name
The __filename
of the current script
Generate a Logger Naming Convention based on a name and current package
The __dirname
of the current script
The name to be attributed
Generate a Logger Naming Convention based on the current package name
The __dirname
of the current script
Create a logger to be used in the app
The filename from which to generate the logger name
The parser to use for generating the logger name
Optional name to be used when generating the logger name
Register a cache key
The name of the property to save under
A setter to be used in obtaining the values
Will execute a process and return a Promise that would resolve to the STDOUT split by lines
Command to be executed
Options
Extracts an array of workspaces from a package.json
The contents of a package.json
Find a directory containing a package.json file, crawling from the starting path, and moving towards the OS root dir, using hasPackageJson
Starting point for finding a package.json
Previous visited directory (used for determining OS root dir)
Fixes Yarn V2 Output to conform to V1 Standards
Root path
Package path
Obtain a Logging Naming Convention from a package name
Name of the package
Load a package.json
file from a path
The path
Determine if path contains a package.json
file
Path
Determines if a package.json has workspaces
The contents of a package.json
Checks if the current folder (pwd) contains a package.json with workspaces and then checks a relative path against workspaces to determine if the relative path belongs to the current monorepo
The path to check if it is the monorepo root
Relative path to be checked against workspaces
Finds the monorepo root, either via the Workspace Finder or the Git Finder
Determines the root of a project based on git
The root directory to start searching from
Crawl directory structure to find root workspaces dir
Root dir to begin crawling
Path to be used when parsing
Invoke a Workspace Parser in a certain path
Parser to be invoked on the path
Path to be used when parsing
Configure the Logger
Set the separator to be used when generating logger names
The new separator
The separator to be used when generating logger names
NOOP Setting the separator through dot notation (TS)
Yarn V1 Workspace List Parser
Obtain an Yarn V1 workspace list output
The cwd of execution
Parse a Yarn V1 workspace list output
The input to parse
Yarn V2 Workspace List Parser
Generated using TypeDoc
@tscmono/utils