feat(pgpm): add -w alias for --workspace flag and migrate to genomic #510
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat(pgpm): add -w alias for --workspace flag and migrate to genomic
Summary
This PR enables users to run
pgpm init -worpgpm init --workspaceto create a new workspace when not inside an existing one. The changes include:--createWorkspaceflag to--workspacewith-walias inpgpm initcommandcreate-gen-apptogenomicpackage (which uses[email protected]with the new alias feature)inquirererto v4.1.0 across all packages to resolve type conflictsThe 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
pgpm init -wandpgpm init --workspaceoutside a workspace to verify both trigger workspace creationcreate-gen-apptogenomicshould be API-compatible, but test thatpgpm initinside a workspace still scaffolds modules correctlypgpm cache cleanto verify theCacheManagerimport fromgenomicworks correctlyRecommended Test Plan
pgpm init -w- should prompt to create a workspacepgpm init --workspace- should behave identicallypgpm initto create a module and verify scaffolding worksNotes
create-gen-apppackage was deprecated in favor ofgenomic, which already uses[email protected]Link to Devin run: https://app.devin.ai/sessions/9b39745595e74f3782f1a79ead7a6db0
Requested by: Dan Lynch (@pyramation)