Home / Function/ createZipArchive() — dead-code-hunter Function Reference

createZipArchive() — dead-code-hunter Function Reference

Architecture documentation for the createZipArchive() function in index.ts from the dead-code-hunter codebase.

Entity Profile

Dependency Diagram

graph TD
  e9e74cdc_be9b_7bf4_8d35_36946c34cb62["createZipArchive()"]
  2707a308_9fa9_efa8_2fbd_febf984897e5["run()"]
  2707a308_9fa9_efa8_2fbd_febf984897e5 -->|calls| e9e74cdc_be9b_7bf4_8d35_36946c34cb62
  style e9e74cdc_be9b_7bf4_8d35_36946c34cb62 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/index.ts lines 84–97

async function createZipArchive(workspacePath: string): Promise<string> {
  const zipPath = path.join(workspacePath, '.dead-code-hunter-repo.zip');

  core.info('Creating zip archive...');

  await exec.exec('git', ['archive', '-o', zipPath, 'HEAD'], {
    cwd: workspacePath,
  });

  const stats = await fs.stat(zipPath);
  core.info(`Archive size: ${(stats.size / 1024 / 1024).toFixed(2)} MB`);

  return zipPath;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does createZipArchive() do?
createZipArchive() is a function in the dead-code-hunter codebase.
What calls createZipArchive()?
createZipArchive() is called by 1 function(s): run.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free