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

Function saveBuildMetadata

scripts/devtools/utils.js:109–117  ·  view source on GitHub ↗
({archivePath, currentCommitHash})

Source from the content-addressed store, hash-verified

107}
108
109function saveBuildMetadata({archivePath, currentCommitHash}) {
110 const path = join(BUILD_METADATA_TEMP_DIRECTORY, 'metadata');
111
112 if (!existsSync(BUILD_METADATA_TEMP_DIRECTORY)) {
113 mkdirSync(BUILD_METADATA_TEMP_DIRECTORY);
114 }
115
116 writeJsonSync(path, {archivePath, currentCommitHash}, {spaces: 2});
117}
118
119module.exports = {
120 checkNPMPermissions,

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected