Skip to content

relizy / getDetectedPackageMoves

Function: getDetectedPackageMoves() ​

getDetectedPackageMoves(commits, cwd): PackageMove[]

Defined in: src/core/moved-packages.ts:51

The package directories moved by the commits. A renamed package.json (R<score>\told/package.json\tnew/package.json) moves the directory of its package: as is for an exact rename (R100), when the package keeps its name for an inexact one. A file moved alone from one package to another does not.

Parameters ​

commits ​

object[]

cwd ​

string

Returns ​

PackageMove[]

Released under the MIT License.