Skip to content

refactor(config): move CLI path fallback to callers - #601

Open
chenjiahan wants to merge 1 commit into
mainfrom
chenjiahan/refactor-explicit-config-path
Open

chenjiahan wants to merge 1 commit into
mainfrom
chenjiahan/refactor-explicit-config-path

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Motivation

loadRstackConfig({ cwd }) implicitly inherited the CLI's --config path, so #600 needed a null sentinel to load external projects independently. The public API should resolve configuration from its explicit arguments.

Changes

Move CLI state and path fallback into an internal loadCliRstackConfig helper and migrate root tool callers, preserving CLI, formatter LSP, and lint-worker path handling. loadRstackConfig now searches cwd when configFilePath is omitted; callers that relied on the implicit CLI path must pass it explicitly. Remove the null input type, update bilingual API docs, and cover directory projects with --config.

Validated with pnpm build, pnpm --filter rstack build:native, pnpm check, pnpm check:spell, and pnpm test (441 passed, 1 skipped).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T02:57:07.953818Z aa9b13f PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: aa9b13f
Status: ✅  Deploy successful!
Preview URL: https://5bd5cd8d.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-refactor-explicit.rstack-cli.pages.dev

View logs

This branch has not been deployed

No deployments
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.

1 participant