fix: skip bootstrap for specific commands#398
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- packages/cli/package.json: Language not supported
Comments suppressed due to low confidence (1)
packages/cli/utils/commander.ts:3
- [nitpick] Consider explicitly specifying the return type (e.g., ': string') for the function to improve code clarity.
export function commandName(command: Command) {
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pavkam
approved these changes
Apr 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces several changes to the CLI package to improve command handling and versioning. The key updates include adding a utility function for command names, skipping bootstrap for specific commands, and updating the package version.
Command handling improvements:
packages/cli/index.ts: AddedcommandNameimport and definedskipBootstrapCommandsto skip bootstrapping for certain commands. UpdatedpreActionhook to check command names and conditionally skip bootstrapping. [1] [2] [3] [4]packages/cli/utils/commander.ts: Added a new utility functioncommandNameto construct full command names for nested commands.Version update:
packages/cli/package.json: Updated the package version from0.5.0to0.5.1.