feat: rename inquirerer to commodore and create @commodore/utils package #38
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 commodore and create @commodore/utils package
Summary
This PR performs a major refactoring of the CLI-related packages in dev-utils:
inquirerer→commodore(v3.0.0): The main CLI prompt library with theInquirererclass renamed toCommodorecreate-gen-app→@commodore/scaffolds(v1.0.0): Template scaffolding utility@commodore/utils(v1.0.0): New package with CLI lifecycle utilities extracted from constructive repo:extractFirst()- command routing utilitycliExitWithError()- error handling with optional cleanup hookscheckForUpdates()- npm version checking with configurable registrygetSelfPackageJson()- package.json resolution helperscommodore/test-utilsAll internal references and dependencies have been updated. Build passes successfully.
Review & Testing Checklist for Human
@commodoreorg is properly configured on npm before publishingpackages/create-gen-app-test/src/cli.tshasPACKAGE_VERSION = '1.0.0'hardcoded instead of reading from package.jsonimport { ... } from 'commodore/test-utils'works correctly after buildRecommended Test Plan:
pnpm install && pnpm buildto verify everything compilespnpm testto ensure existing tests passNotes
BREAKING CHANGES:
inquirerer→commodore(classInquirerer→Commodore)create-gen-app→@commodore/scaffoldsNot included in this PR:
Link to Devin run: https://app.devin.ai/sessions/e5018850caff45ce8a126331548d69bc
Requested by: Dan Lynch (@pyramation)