Skip to content
This repository was archived by the owner on Jul 4, 2026. It is now read-only.

fix: handle default project name and update test timing and inputs - #60

Merged
gaureshpai merged 1 commit into
mainfrom
proj-name
Oct 21, 2025
Merged

gaureshpai merged 1 commit into
mainfrom
proj-name

Conversation

@gaureshpai

Copy link
Copy Markdown
Owner

Description

Added logic to set projectName to current directory name if user inputs '.' to improve usability when naming projects.

Increased test timeout duration from 1000ms to 3000ms to prevent premature test failures.

Corrected test input for useShadcn option by sending '\n' (default yes) when enabled and 'n\n' when disabled, aligning tests with updated CLI prompt behavior.

This commit enhances user experience by better handling project naming edge cases and improves test reliability by adjusting timing and input responses.

Related Issue

Fixes #58
Closes #58

Type of Change

  • Bug fix (non-breaking change addressing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to break)
  • Documentation update

Added logic to set projectName to current directory name if user inputs '.' to improve usability when naming projects.

Increased test timeout duration from 1000ms to 3000ms to prevent premature test failures.

Corrected test input for useShadcn option by sending '\n' (default yes) when enabled and 'n\n' when disabled, aligning tests with updated CLI prompt behavior.

This commit enhances user experience by better handling project naming edge cases and improves test reliability by adjusting timing and input responses.
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Welcome, @gaureshpai!

Thank you for submitting a Pull Request! We're thrilled to see your contribution. Our team will review it shortly.

@github-actions

Copy link
Copy Markdown
Contributor

✅ CI/CD Test Results

Overall Status: success

Node.js Version Results:


View full workflow run

@gaureshpai
gaureshpai merged commit e627a70 into main Oct 21, 2025
5 checks passed
@gaureshpai
gaureshpai deleted the proj-name branch October 21, 2025 17:40
@gaureshpai gaureshpai added bug Something isn't working documentation Improvements or additions to documentation hacktoberfest-accepted labels Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working documentation Improvements or additions to documentation hacktoberfest-accepted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Project name not auto-detected from parent folder when rewriting layout and README

1 participant