Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not prompt for project if --cwd was provided #6362

Merged
merged 3 commits into from May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/commands/base-command.ts
Expand Up @@ -493,8 +493,9 @@ export default class BaseCommand extends Command {
const frameworks = await this.project.detectFrameworks()
let packageConfig: string | undefined = flags.config ? resolve(flags.config) : undefined
// check if we have detected multiple projects inside which one we have to perform our operations.
// only ask to select one if on the workspace root
// only ask to select one if on the workspace root and no --cwd was provided
if (
!flags.cwd &&
!COMMANDS_WITHOUT_WORKSPACE_OPTIONS.has(actionCommand.name()) &&
this.project.workspace?.packages.length &&
this.project.workspace.isRoot
Expand Down