Skip to content

refactor(core): replace tsconfck with get-tsconfig - #1757

Merged
Timeless0911 merged 1 commit into
mainfrom
david/fix-core-tsconfig-loader
Jul 8, 2026
Merged

Timeless0911 merged 1 commit into
mainfrom
david/fix-core-tsconfig-loader

Conversation

@Timeless0911

Copy link
Copy Markdown
Contributor

Summary

Replace tsconfck in @rslib/core with get-tsconfig because tsconfck is unmaintained. Rslib now resolves source.tsconfigPath the same way Rsbuild does, loads get-tsconfig dynamically only when a tsconfig file exists, and opts out of TypeScript-version defaults to preserve the existing compiler options behavior.

Related Links

https://github.com/dominikg/tsconfck/issues/240

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings July 8, 2026 08:10
@Timeless0911 Timeless0911 changed the title fix(core): replace tsconfck with get-tsconfig refactor(core): replace tsconfck with get-tsconfig Jul 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates @rslib/core’s tsconfig loading to replace the unmaintained tsconfck dependency with get-tsconfig, aligning tsconfig resolution with the approach used elsewhere in the ecosystem and reducing reliance on deprecated tooling.

Changes:

  • Replace tsconfck-based find/parse with get-tsconfig (readTsconfig) loaded dynamically when a tsconfig file exists.
  • Update unit tests for the new tsconfig parsing output shape.
  • Update dependencies/lockfile and clean up spellcheck dictionary entries.

Reviewed changes

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

Show a summary per file
File Description
scripts/dictionary.txt Removes the tsconfck word entry now that the dependency is gone.
pnpm-lock.yaml Swaps tsconfck out and locks get-tsconfig@5.0.0-beta.5 for @rslib/core.
packages/core/tests/tsconfig.test.ts Updates assertions for the new tsconfig loader behavior/output.
packages/core/src/utils/tsconfig.ts Reimplements loadTsconfig using get-tsconfig with conditional dynamic import.
packages/core/package.json Replaces tsconfck dependency with get-tsconfig.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread packages/core/src/utils/tsconfig.ts Outdated
Comment thread packages/core/tests/tsconfig.test.ts
@Timeless0911
Timeless0911 force-pushed the david/fix-core-tsconfig-loader branch from 50b0f11 to 87b61ed Compare July 8, 2026 08:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: 87b61edb3d

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

Comment thread packages/core/package.json
@Timeless0911
Timeless0911 force-pushed the david/fix-core-tsconfig-loader branch 3 times, most recently from d3cd3be to 6b5f53a Compare July 8, 2026 08:47
@Timeless0911
Timeless0911 force-pushed the david/fix-core-tsconfig-loader branch from 6b5f53a to 1adee33 Compare July 8, 2026 08:49
@Timeless0911
Timeless0911 merged commit ea0c826 into main Jul 8, 2026
11 checks passed
@Timeless0911
Timeless0911 deleted the david/fix-core-tsconfig-loader branch July 8, 2026 08:58
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.

2 participants

Sponsor
SponsoredKunjungi sekarang
Promo