Skip to content

Support creating projects in current directory#128

Open
fhammerschmidt wants to merge 1 commit intorescript-lang:masterfrom
fhammerschmidt:issue-53-current-directory
Open

Support creating projects in current directory#128
fhammerschmidt wants to merge 1 commit intorescript-lang:masterfrom
fhammerschmidt:issue-53-current-directory

Conversation

@fhammerschmidt
Copy link
Copy Markdown
Member

Fixes #53

@fhammerschmidt fhammerschmidt requested a review from cknitt May 4, 2026 23:18
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 4, 2026

Open in StackBlitz

npx https://pkg.pr.new/create-rescript-app@128

commit: fb4dd7a

@fhammerschmidt
Copy link
Copy Markdown
Member Author

@codex review

Copy link
Copy Markdown

@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: fb4dd7a5a4

ℹ️ 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".

"readme.md",
]

let isCurrentDirectoryProject = projectName => projectName === currentDirectoryArgument
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Accept './' as current-directory project name

The current-directory detection only matches the exact string ".", so a common equivalent input like create-rescript-app ./ --template vite is treated as a regular project name and then rejected by the package-name regex. This makes the new current-directory flow fail for a valid path form users often pass from shell completion/scripts; normalizing the argument (e.g., resolving ./ to .) before validation would avoid this regression.

Useful? React with 👍 / 👎.

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.

Add an option to add files in the current directory instead of creating a new one

1 participant