Skip to content

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

Merged
chenjiahan merged 3 commits into
mainfrom
chenjiahan/refactor-explicit-config-path
Nov 2, 2026
Merged

chenjiahan merged 3 commits 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-11-02T06:06:59.982407Z d826e4a New commits
ℹ️ 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

cloudflare-workers-and-pages Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: d826e4a
Status: ✅  Deploy successful!
Preview URL: https://2f824736.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-refactor-explicit.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit f8df903 into main Nov 2, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/refactor-explicit-config-path branch November 2, 2026 06:20
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