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

Function archiveGitRevision

scripts/devtools/build-and-test.js:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64async function archiveGitRevision() {
65 const desktopPath = join(homedir(), 'Desktop');
66 const archivePath = join(desktopPath, 'DevTools.tgz');
67
68 console.log(`Creating git archive at ${chalk.dim(archivePath)}`);
69 console.log('');
70
71 if (!DRY_RUN) {
72 await exec(`git archive main | gzip > ${archivePath}`, {cwd: ROOT_PATH});
73 }
74
75 return archivePath;
76}
77
78async function buildAndTestExtensions() {
79 const extensionsPackagePath = join(

Callers 1

mainFunction · 0.85

Calls 1

execFunction · 0.85

Tested by

no test coverage detected