@typescript-tools/packages-to-rebuild-on-changes
v2.0.1
Published
Calculate packages required to rebuild when a given package changes
Downloads
57,750
Readme
packages-to-rebuild-on-changes
Calculate packages required to rebuild when a given package changes
The Problem
A user has made changes to one or more internal packages, and we want to validate the minimum-but-sufficient subset of internal packages that may be affected by this change.
This set of packages is calculated as:
- the changed packages
- the set of packages consuming (1)
- the set of dependencies of (1) and (2)
Install
npm install --save-dev @typescript-tools/packages-to-rebuild-on-changes
API
export function packagesToRebuildOnChanges(
root?: string,
): TE.TaskEither<PackagesToRebuildOnChangesError, Map<PackageName, PackageManifest[]>>