MCPcopy Create free account
hub / github.com/angular/dev-infra / compute

Function compute

ng-dev/release/publish/directory-hash.ts:14–16  ·  view source on GitHub ↗

Computes a hash for the given directory.

(dirPath: string)

Source from the content-addressed store, hash-verified

12export abstract class DirectoryHash {
13 /** Computes a hash for the given directory. */
14 static async compute(dirPath: string): Promise<string> {
15 return (await hashElement(dirPath, {})).hash;
16 }
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected