Skip to content

Conversation

@Chhavi-Mandowara
Copy link
Contributor

fix: use runtime cwd for data-dir flag

@Chhavi-Mandowara Chhavi-Mandowara merged commit b4f96c8 into staging Jan 28, 2026
11 of 13 checks passed
Copy link

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

Updates the launch:functions command so the default data-dir resolves to the runtime working directory (instead of being captured at module-load time), and adds a regression test to cover the fallback behavior.

Changes:

  • Remove the static process.cwd() default from the data-dir flag definition.
  • Compute projectBasePath at runtime in init() using process.cwd() when the flag is not provided.
  • Add a unit test verifying the runtime fallback to process.cwd().

Reviewed changes

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

File Description
src/commands/launch/functions.ts Moves data-dir defaulting to runtime within init() for correct cwd resolution.
src/commands/launch/functions.test.ts Adds coverage to ensure data-dir falls back to process.cwd() when unset.

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

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.

5 participants