feat: rename inquirerer to genomic and create @genomic packages #39
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: rename inquirerer to genomic and create @genomic packages
Summary
This PR renames the CLI library packages to use the
@genomicscope and creates a new utilities package:Package Renames:
inquirerer→genomic(v3.0.0)create-gen-app→@genomic/scaffolds(v1.0.0)New Package:
@genomic/utils(v1.0.0) - CLI lifecycle utilities extracted for reuse:extractFirst()- command routing utility for extracting first positional argcliExitWithError()- error handling with optionalbeforeExitcleanup hookcheckForUpdates()- npm version checking with configurable registry and caching via appstashgetSelfPackageJson()/getSelfVersion()/getSelfName()- package.json resolution helpersOther Changes:
Inquirererclass toPrompter(cleaner API:import { Prompter } from 'genomic')InquirererOptionstoPrompterOptionsfor consistencycreate-gen-app-testThis is a BREAKING CHANGE with no backwards compatibility as requested.
Updates since last revision
Genomic→Prompter(andGenomicOptions→PrompterOptions) for a cleaner public APIPrompterclass namePrompterin describe blocksconst prompter = new Prompter()(notconst genomic = ...)exportsfield from genomic package.json per user requestReview & Testing Checklist for Human
Genomic,genomic(as variable name),Inquirerer, orinquirererreferences that may have been missed by the sed replacementpackages/utils/src/have no tests - verifycheckForUpdatescorrectly usesappstash()API andgetSelfPackageJsoncorrectly imports fromfind-and-require-package-jsonpackages/create-gen-app-test/src/cli.tslines 18-19, version is hardcoded as'1.0.0'- confirm this is acceptable vs dynamic resolutionimport { Prompter } from 'genomic')Recommended Test Plan:
pnpm buildto verify all packages compilepnpm testto verify existing tests passgenomic,@genomic/scaffolds, and@genomic/utilsto verify exports workimport { Prompter, PrompterOptions } from 'genomic'works correctlyNotes
This PR covers only the dev-utils repository. The constructive repository imports will need to be updated separately (see constructive#502).
Link to Devin run: https://app.devin.ai/sessions/e5018850caff45ce8a126331548d69bc
Requested by: Dan Lynch ([email protected]) / @pyramation