Skip to content

fix: use current directory name as default package name when project name is "." - #1163

Merged
haoqunjiang merged 1 commit into
mainfrom
fix/dot-target-dir-package-name
Oct 19, 2026
Merged

haoqunjiang merged 1 commit into
mainfrom
fix/dot-target-dir-package-name

Conversation

@btea

@btea btea commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Description

Previously, entering "." as the project name always triggered the package name prompt, since "." is not a valid package name and toValidPackageName(".") produced an empty initial value.

Now the current folder name is used as the default package name. The prompt only appears when the folder name itself is not a valid package name, with the converted folder name as the initial value.

@haoqunjiang
haoqunjiang merged commit 3020f82 into main Oct 19, 2026
78 checks passed
@btea
btea deleted the fix/dot-target-dir-package-name branch October 19, 2026 08:53
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.

2 participants