From 4a91966cb4864a0a9266a311c7fa4f49a911171b Mon Sep 17 00:00:00 2001 From: Jay Bell Date: Wed, 4 May 2022 14:52:35 -0700 Subject: [PATCH] feat(core): expose hash file function in hasher (#10146) --- packages/nx/src/hasher/hasher.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nx/src/hasher/hasher.ts b/packages/nx/src/hasher/hasher.ts index 788e39952afc0..6081e4a5794d9 100644 --- a/packages/nx/src/hasher/hasher.ts +++ b/packages/nx/src/hasher/hasher.ts @@ -153,6 +153,10 @@ export class Hasher { return this.hashing.hashArray(values); } + hashFile(path: string): string { + return this.hashing.hashFile(path); + } + private async runtimeInputsHash(): Promise { if (this.runtimeInputs) return this.runtimeInputs;