Skip to content

feat(create): support creating project in current directory#1097

Merged
fengmk2 merged 8 commits intovoidzero-dev:mainfrom
hamsurang:feat/create-in-current-directory
Mar 23, 2026
Merged

feat(create): support creating project in current directory#1097
fengmk2 merged 8 commits intovoidzero-dev:mainfrom
hamsurang:feat/create-in-current-directory

Conversation

@jong-kyung
Copy link
Contributor

Summary

  • Support vp create --directory . to scaffold a project in the current directory without creating a new folder
  • Auto-derive package name from the current directory name (no interactive prompt), similar to cargo init / npm init -y
  • Fix "./" input to be treated equivalently to "." in formatTargetDir
  • Extract deriveDefaultPackageName to utils.ts for testability
  • Log the auto-derived package name when using --directory .

Closes #1077

@netlify
Copy link

netlify bot commented Mar 22, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 8c80d55
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69c15e05762a3200083d7b15

@kazupon
Copy link
Collaborator

kazupon commented Mar 22, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b14d525e5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jong-kyung
Copy link
Contributor Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8d89bd606a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jong-kyung jong-kyung force-pushed the feat/create-in-current-directory branch from 6ed625e to 44ffcef Compare March 23, 2026 12:27
@jong-kyung
Copy link
Contributor Author

@codex review

@jong-kyung jong-kyung force-pushed the feat/create-in-current-directory branch from 35e3d40 to f37413c Compare March 23, 2026 12:32
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f37413ca02

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jong-kyung
Copy link
Contributor Author

I've reviewed and addressed all the Codex feedback.

Resolved P1 Issues:

  • Fixed monorepo path resolution.
  • Added proper rejection for root and existing package paths.
  • Fixed exact-match detection.
  • Corrected message ordering.

P2 Suggestions (Left as-is):
I intentionally left the P2 suggestions as they are:

  • Scoped directory names: These are already handled by monorepoScope.
  • Workspace parent directories: These are effectively caught by checkProjectDirExists since they are practically never empty.

@fengmk2 Could you please take a moment to review this PR when you have time? Your feedback would be greatly appreciated!

Copy link
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jong-kyung LGTM, please take a look at CI fails.

@jong-kyung
Copy link
Contributor Author

@jong-kyung LGTM, please take a look at CI fails.

I fixed it ! Thanks

@fengmk2 fengmk2 merged commit 4de4084 into voidzero-dev:main Mar 23, 2026
22 checks passed
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.

Feature request: Add way to create project in cwd

3 participants