Skip to content

Conversation

@manuel3108
Copy link
Member

the current implementation never displays the path to the user, if it was not passed as an arg. This fixes the issue.

directory previously was an absolute path if the path was specified in the command args, but a relative path if the user entered it via the the prompt. It will now always be a relative one, unless the user specifies an absolute path

@changeset-bot
Copy link

changeset-bot bot commented Nov 21, 2025

🦋 Changeset detected

Latest commit: 17c4932

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sv Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@manuel3108 manuel3108 requested a review from Copilot November 21, 2025 15:23
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 21, 2025

Open in StackBlitz

npx https://pkg.pr.new/sveltejs/cli/sv@805
npx https://pkg.pr.new/sveltejs/cli/svelte-migrate@805

commit: 17c4932

@svelte-docs-bot
Copy link

Copilot finished reviewing on behalf of manuel3108 November 21, 2025 15:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the CLI's argument logging didn't display the directory path when it was entered via the interactive prompt instead of being passed as a command-line argument. The fix ensures that the path is always logged regardless of how it was provided, and maintains consistency by using relative paths unless the user explicitly specifies an absolute path.

  • Moved defaultPath constant to local scope where it's actually used
  • Changed directory handling to preserve user input format (relative vs absolute)
  • Updated logging to use the actual directory value from prompt group

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/cli/commands/create.ts Fixed directory path logging by using the directory value from the prompt group instead of the original cwd argument, and moved defaultPath to local scope
.changeset/kind-bananas-joke.md Added changeset documenting the bug fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jycouet jycouet merged commit 42e1b36 into main Nov 21, 2025
14 checks passed
@jycouet jycouet deleted the fix/print-args-dispaly-path-from-input-and-not-absolute branch November 21, 2025 15:34
@github-actions github-actions bot mentioned this pull request Nov 21, 2025
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