MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / buildTarball

Function buildTarball

scripts/build-protocol-tarball.cjs:162–174  ·  view source on GitHub ↗
(label, stagingRoot, rootDirName, outFile)

Source from the content-addressed store, hash-verified

160}
161
162async function buildTarball(label, stagingRoot, rootDirName, outFile) {
163 await tar.create(
164 {
165 gzip: { level: 9 },
166 file: outFile,
167 cwd: stagingRoot,
168 portable: true
169 },
170 [rootDirName]
171 );
172 const size = fs.statSync(outFile).size;
173 console.log(` ✓ ${label}: ${outFile.replace(ROOT + '/', '')} (${(size / 1024).toFixed(1)} KB)`);
174}
175
176function stageBundle(bundleParent, version, schemasSource, rootDirName, isDev = false) {
177 if (fs.existsSync(bundleParent)) fs.rmSync(bundleParent, { recursive: true, force: true });

Callers 1

mainFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected