Skip to content

Conversation

@pyramation
Copy link
Contributor

No description provided.

Remove unused code from pgpm/cli and packages/cli:

- pgpm/cli/src/utils/argv.ts: Remove ValidatedArgv interface and unused
  functions (validateCommonArgs, validateFlagDependencies, logEffectiveArgs,
  constructTarget). Keep only extractFirst which is actively used.

- pgpm/cli/src/utils/display.ts: Remove unused displayVersion and
  displayUsage functions. Keep only usageText which is actively used.

- packages/cli/src/utils/display.ts: Remove unused displayVersion and
  displayUsage functions. Keep only usageText which is actively used.

These functions were defined but never called anywhere in the codebase.

Co-Authored-By: Dan Lynch <[email protected]>
Replace manual readFileSync + JSON.parse with findAndRequirePackageJson
for more robust package.json resolution in both CLI entry points.

Co-Authored-By: Dan Lynch <[email protected]>
@pyramation pyramation merged commit 3fb7ca1 into main Dec 25, 2025
34 checks passed
@pyramation pyramation deleted the cli/cleanup-unused-code branch December 25, 2025 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants