Skip to content

Conversation

@pyramation
Copy link
Contributor

No description provided.

…ules methods

- Add modulesInstalled() to check if specific modules are installed
- Add getInstalledModules() to get all installed pgpm modules
- Add upgradeModules() to update installed modules to latest npm versions
  - Supports dry-run mode to preview updates
  - Updates package.json for ALL modules in workspace that reference upgraded packages
- Add upgrade-modules CLI command with interactive checkbox prompts
- Update README with documentation for new command
- Add comprehensive tests for core methods and CLI command
- Remove jest.mock() usage for PgpmPackage and fetchLatestVersion
- Use TestFixture from core package for real filesystem testing
- Test actual CLI command behavior with real module installations
- Use relative import path for TestFixture
- Create pgpm/pgpm/test-utils with TestFixture class
- Remove cross-package relative import (../../../core/test-utils)
- Follow same pattern as packages/cli/test-utils

Co-Authored-By: Dan Lynch <[email protected]>
- Update tests to use @pgpm-testing packages with versions 1.1.0 and 1.2.0
- Add test for recursive dependencies using @pgpm-testing/totp
- Add real upgrade test from 1.1.0 to 1.2.0
- Fix upgradeModules to filter out already-up-to-date modules in dry-run
- Update snapshots for new package structure (pgpm-base32 vs launchql-base32)

Co-Authored-By: Dan Lynch <[email protected]>
- Delete incorrect test-utils from pgpm/pgpm/
- Delete incorrect CLI tests from pgpm/pgpm/src/__tests__/
- Add proper CLI tests in packages/cli/__tests__/upgrade-modules.test.ts
- Follow same pattern as init.install.test.ts

Co-Authored-By: Dan Lynch <[email protected]>
- Rename pgpm/pgpm directory to pgpm/cli for clarity
- Delete mock-heavy tests from pgpm/pgpm/src/__tests__/
- Add pgpm/cli to CI test matrix in run-tests.yaml
- Update pnpm-lock.yaml for new directory structure

Co-Authored-By: Dan Lynch <[email protected]>
@pyramation pyramation merged commit f91a264 into main Dec 24, 2025
68 checks passed
@pyramation pyramation deleted the feat/modules-installed-update branch December 24, 2025 22:47
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