Adds an observer for the git operations, e.g. for testing
Get paths to every package.json in the workspace, given a cwd
Gets all the changes between the branch and the merge-base
Finds all packages that had been changed in the repo under cwd
executes a "git diff $Target..." to get changes given a merge-base
further explanation with the three dots:
git diff [--options]
... [--] [ ...] This form is to view the changes on the branch containing and up to the second
, starting at a common ancestor of both . "git diff A...B" is equivalent to "git diff $(git-merge-base A B) B". You can omit any one of , which has the same effect as using HEAD instead.
string[] of package names that have changed
Finds all packages that had been changed between two refs in the repo under cwd
executes a "git diff $fromRef...$toRef" to get changes given a merge-base
further explanation with the three dots:
git diff [--options]
... [--] [ ...] This form is to view the changes on the branch containing and up to the second
, starting at a common ancestor of both . "git diff A...B" is equivalent to "git diff $(git-merge-base A B) B". You can omit any one of , which has the same effect as using HEAD instead.
string[] of package names that have changed
Get the commit hash in which the file was first added.
Given a list of files, finds all packages names that contain those files
The root of the workspace
files to search for
glob patterns to ignore
if true, will return all packages if no matches are found
package names that have changed
Searches all package names based on "scoping" (i.e. "scope" in the sense of inclusion) NOTE: scoping is different than package scopes (@scope/package)
for a package graph of a->b->c (where b depends on a), transitive consumers of a are b & c and their consumers (or what are the consequences of a)
for a package graph of a->b->c (where b depends on a), transitive providers of c are a & b and their providers (or what is needed to satisfy c)
Gets all the changes that have not been staged yet
Runs git command - use this for read only commands
Runs git command - use this for commands that makes changes to the file system
Starting from cwd, searches up the directory hierarchy for pathName
Generated using TypeDoc
resets the graph cache for internal testing purpose only