Skip to content

Bug fix: allow creation of projects in CWD + non project folders #1413

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

Merged
merged 2 commits into from
Mar 31, 2025

Conversation

camden11
Copy link
Contributor

Description and Context

See https://git.hubteam.com/HubSpot/hubspot-cli-issues/issues/804

Previously, the hs project create dest prompt didn't allow you to create a project in any existing folder (including your current working directory) and displayed an error message saying There is an existing project at this destination. Please provide a new path for this project. whether a project existed there or now. This updates the prompt to actually check for an hsproject.json file rather than just an existing dir. This allows users to create a project in their CWD or another non-project folder via the prompt. Now, entering a dest via the prompt and entering a dest via the --dest flag have matching behavior.

Screenshots

The error that existed previously.
image

Who to Notify

@brandenrodgers @kemmerle @joe-yeager @j0b0sapi3n

@camden11 camden11 merged commit d57a1ca into main Mar 31, 2025
1 check passed
@camden11 camden11 deleted the hs-project-create-cwd-bug branch March 31, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants