Skip to content

Conversation

@pyramation
Copy link
Contributor

feat(pgpm): add -w alias for --workspace flag and migrate to genomic

Summary

This PR enables users to run pgpm init -w or pgpm init --workspace to create a new workspace when not inside an existing one. The changes include:

  • Renamed --createWorkspace flag to --workspace with -w alias in pgpm init command
  • Migrated from create-gen-app to genomic package (which uses [email protected] with the new alias feature)
  • Updated inquirerer to v4.1.0 across all packages to resolve type conflicts

The alias feature was implemented in a separate PR to the dev-utils repo (constructive-io/dev-utils#43) and published as [email protected].

Review & Testing Checklist for Human

  • Test the alias functionality: Run pgpm init -w and pgpm init --workspace outside a workspace to verify both trigger workspace creation
  • Verify template scaffolding still works: The migration from create-gen-app to genomic should be API-compatible, but test that pgpm init inside a workspace still scaffolds modules correctly
  • Check cache command: Run pgpm cache clean to verify the CacheManager import from genomic works correctly

Recommended Test Plan

  1. Navigate to a directory outside any PGPM workspace
  2. Run pgpm init -w - should prompt to create a workspace
  3. Run pgpm init --workspace - should behave identically
  4. Inside the new workspace, run pgpm init to create a module and verify scaffolding works

Notes

  • The create-gen-app package was deprecated in favor of genomic, which already uses [email protected]
  • The large pnpm-lock.yaml diff is mostly formatting changes plus the dependency updates

Link to Devin run: https://app.devin.ai/sessions/9b39745595e74f3782f1a79ead7a6db0
Requested by: Dan Lynch (@pyramation)

- Rename --createWorkspace to --workspace with -w alias in pgpm init
- Migrate from create-gen-app to genomic package (uses [email protected])
- Update inquirerer to 4.1.0 across all packages
- Update import statements in template-scaffold.ts and cache.ts

This enables users to run 'pgpm init -w' or 'pgpm init --workspace' to
create a new workspace when not inside an existing one.
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@pyramation pyramation merged commit 1cf9aa2 into main Dec 27, 2025
34 checks passed
@pyramation pyramation deleted the devin/1766805583-workspace-alias branch December 27, 2025 03:50
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