import { getGitHashForFiles } from '@rushstack/package-deps-hash' ; import objectHash from 'object-hash' ; export const getYarnHash = async ( { globalHash , root , } ) : Promise < string > => { const hashMap = getGitHashForFiles ( [ 'yarn.lock' ] , root ) ; return `yarn-${ objectHash ( [ hashMap , globalHash ] ) }.tgz` ; } ;