MCPcopy Index your code
hub / github.com/react/react / getChecksumForCurrentRevision

Function getChecksumForCurrentRevision

scripts/release/utils.js:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87};
88
89const getChecksumForCurrentRevision = async cwd => {
90 const packagesDir = join(cwd, 'packages');
91 const hashedPackages = await hashElement(packagesDir, {
92 encoding: 'hex',
93 files: {exclude: ['.DS_Store']},
94 });
95 return hashedPackages.hash.slice(0, 7);
96};
97
98const getDateStringForCommit = async commit => {
99 let dateString = await execRead(

Callers 1

getBuildInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected