2.0.1 • Published 3 years ago

@typescript-tools/packages-to-rebuild-on-changes v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

packages-to-rebuild-on-changes

License NPM Package Build Status semantic-release

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:

  1. the changed packages
  2. the set of packages consuming (1)
  3. 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[]>>

Related