Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pack): Performance Optimization for Large Repositories #307

Merged
merged 6 commits into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
298 changes: 298 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"minimatch": "^10.0.1",
"p-map": "^7.0.3",
"picocolors": "^1.1.1",
"piscina": "^4.8.0",
"strip-comments": "^2.0.1",
"strip-json-comments": "^5.0.1",
"tiktoken": "^1.0.18",
Expand Down
3 changes: 2 additions & 1 deletion src/cli/actions/remoteAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const runRemoteAction = async (
deps = {
isGitInstalled,
execGitShallowClone,
runDefaultAction,
},
): Promise<DefaultActionRunnerResult> => {
if (!(await deps.isGitInstalled())) {
Expand Down Expand Up @@ -46,7 +47,7 @@ export const runRemoteAction = async (
logger.log('');

// Run the default action on the cloned repository
result = await runDefaultAction(tempDirPath, tempDirPath, options);
result = await deps.runDefaultAction(tempDirPath, tempDirPath, options);
await copyOutputToCurrentDirectory(tempDirPath, process.cwd(), result.config.output.filePath);
} catch (error) {
spinner.fail('Error during repository cloning. cleanup...');
Expand Down
1 change: 0 additions & 1 deletion src/config/configLoad.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as fs from 'node:fs/promises';
import path from 'node:path';
import stripJsonComments from 'strip-json-comments';
import { z } from 'zod';
import { RepomixError, rethrowValidationErrorIfZodError } from '../shared/errorHandle.js';
import { logger } from '../shared/logger.js';
import {
Expand Down
Loading
Loading