relizy / getPreviousPackagePaths
Function: getPreviousPackagePaths()
getPreviousPackagePaths(
__namedParameters):string[]
Defined in: src/core/moved-packages.ts:68
The former directories of a package (POSIX, relative to the repository): the moves detected in the commits, plus the ones of monorepo.movedPackages (old path → new path), followed through the chains (a → b → c). The commits that changed these directories belong to the package.
A detected move is skipped when a package lives in its old directory again: the commits of that directory belong to this other package.
Parameters
__namedParameters
commits
object[]
cwd
string
movedPackages?
Record<string, string>
packagePath
string
Returns
string[]