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 aa9f9c43_acc5_99f2_5a98_904088e2f599["createZipArchive()"] 1916269f_4df6_c8ce_0c1a_a8a66a4fb245["index.ts"] aa9f9c43_acc5_99f2_5a98_904088e2f599 -->|defined in| 1916269f_4df6_c8ce_0c1a_a8a66a4fb245 0c3136ed_f7b1_d5d1_589e_7b15515e6598["run()"] 0c3136ed_f7b1_d5d1_589e_7b15515e6598 -->|calls| aa9f9c43_acc5_99f2_5a98_904088e2f599 style aa9f9c43_acc5_99f2_5a98_904088e2f599 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
Defined In
Called By
Source
Frequently Asked Questions
What does createZipArchive() do?
createZipArchive() is a function in the dead-code-hunter codebase, defined in src/index.ts.
Where is createZipArchive() defined?
createZipArchive() is defined in src/index.ts at line 84.
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