Home > @rushstack/package-deps-hash

package-deps-hash package

This package builds a JSON object containing the git hashes of all files used to produce a given NPM package. The Rush tool uses this library to implement incremental build detection.


For more info, please see the package README.


Function Description
getGitHashForFiles(filesToHash, packagePath) Takes a list of files and returns the current git hashes for them
getPackageDeps(packagePath, excludedPaths) Builds an object containing hashes for the files under the specified packagePath folder.


Interface Description
IPackageDeps The data structure returned by getPackageDeps().