You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tsconfck is being discontinued, the new recommended way is to use get-tsconfig. #16385
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I noticed this warning when I installed Astro via pnpm install or pnpm update, I then investigated it and found that it was due to tsconfck being deprecated soon.
The author recommended switching to https://github.com/privatenumber/get-tsconfig, get-tsconfig might have some differences in behavior so it is worth investigating further, as far as I can tell the differences between both pacakges is minimal.
There is also a chance we can utilize rolldown built-in utilities for this vitejs/vite#21577
Doing my own research I think get-tsconfig is the best balance here, while avoiding potential future edge cases and/or behaviour drift. If we're fine with behaviour drift then the rolldown utility would be the most convinent solution here.
Reproduced: Skipped — this is a dependency deprecation notice, not a runtime bug. The tsconfck package's author is discontinuing the project (tsconfck#240), and the package has an unmet peer dependency on typescript@^5.0.0 which causes warnings with TypeScript 6.x.
Priority:P2: Nice to Have. The tsconfck package still works correctly today — the only user-visible symptom is a peer dependency warning during pnpm install when using TypeScript 6.x. There is no broken functionality. This affects users who have upgraded to TypeScript 6.x and notice the warning, but it does not impact builds, dev server, or any runtime behavior.
Astro uses tsconfck directly in packages/astro/src/core/config/tsconfig.ts (and scripts/smoke/check.js) to locate, parse, and resolve tsconfig.json/jsconfig.json files. The API surface used is: find(), parse(), toJson(), TSConfckParseError, and the types TSConfckParseOptions/TSConfckParseResult. The package is listed as a direct dependency in packages/astro/package.json and scripts/package.json. Since the author has announced discontinuation, Astro will eventually need to migrate to an alternative like get-tsconfig or leverage Vite/Rolldown built-in utilities (vitejs/vite#21577).
I wasn't able to find a fix, but I identified some areas that may be relevant. The migration would involve replacing imports in packages/astro/src/core/config/tsconfig.ts (the primary consumer), scripts/smoke/check.js, and packages/astro/test/units/config/config-tsconfig.test.ts. The get-tsconfig package provides getTsconfig() (equivalent to find + parse) and parseTsconfig(), but does not have a direct equivalent of toJson() (which strips comments/trailing commas from raw tsconfig content). A migration would also need to replicate the TSConfckParseError error handling pattern. It may be worth coordinating with Vite's migration effort in vitejs/vite#21577 to avoid duplicating work or introducing inconsistencies.
Full Triage Report
Issue Summary
The tsconfck package (used by Astro to find and parse tsconfig/jsconfig files) is being discontinued by its author. The immediate symptom is an unmet peer dependency warning when installing Astro with TypeScript 6.x, since tsconfck@3.1.6 requires typescript@^5.0.0.
Dependency Analysis
Direct dependency in packages/astro/package.json (line 166): "tsconfck": "^3.1.6"
Direct dependency in scripts/package.json (line 15): "tsconfck": "^3.1.6"
Not a transitive dependency from Vite or other packages
find() (line 74): Locates tsconfig.json/jsconfig.json from a directory
parse() (line 117): Parses and resolves the extends chain
toJson() (lines 92, 106): Strips comments/trailing commas from raw config content
TSConfckParseError (line 125): Error handling for invalid configs
Types: TSConfckParseOptions, TSConfckParseResult
scripts/smoke/check.js (line 7, 76): Uses toJson() for smoke tests
packages/astro/test/units/config/config-tsconfig.test.ts (line 6, 52): Uses toJson() in unit tests
Migration Options
get-tsconfig — Recommended by tsconfck author. Provides getTsconfig() and parseTsconfig(). Would need a custom solution for toJson() functionality.
Rolldown built-in utilities — Vite is exploring this in vitejs/vite#21577. Would align with Vite's direction but may introduce behavior drift.
Custom implementation — The API surface used is relatively small; a custom wrapper could be feasible but adds maintenance burden.
Branch Investigation
The flue/fix-16385 branch contains only lockfile changes from investigation (TypeScript 5.9.3 → 6.0.2 version resolution updates). No code changes were made.
This report was made by an LLM. The analysis may be wrong, and the potential fix might not work, but is intended as a starting point for exploring the issue.
Activity
astrobot-houston commentedon Apr 18, 2026
tsconfckpackage's author is discontinuing the project (tsconfck#240), and the package has an unmet peer dependency ontypescript@^5.0.0which causes warnings with TypeScript 6.x.tsconfckpackage still works correctly today — the only user-visible symptom is a peer dependency warning duringpnpm installwhen using TypeScript 6.x. There is no broken functionality. This affects users who have upgraded to TypeScript 6.x and notice the warning, but it does not impact builds, dev server, or any runtime behavior.Astro uses
tsconfckdirectly inpackages/astro/src/core/config/tsconfig.ts(andscripts/smoke/check.js) to locate, parse, and resolvetsconfig.json/jsconfig.jsonfiles. The API surface used is:find(),parse(),toJson(),TSConfckParseError, and the typesTSConfckParseOptions/TSConfckParseResult. The package is listed as a direct dependency inpackages/astro/package.jsonandscripts/package.json. Since the author has announced discontinuation, Astro will eventually need to migrate to an alternative likeget-tsconfigor leverage Vite/Rolldown built-in utilities (vitejs/vite#21577).I wasn't able to find a fix, but I identified some areas that may be relevant. The migration would involve replacing imports in
packages/astro/src/core/config/tsconfig.ts(the primary consumer),scripts/smoke/check.js, andpackages/astro/test/units/config/config-tsconfig.test.ts. Theget-tsconfigpackage providesgetTsconfig()(equivalent tofind+parse) andparseTsconfig(), but does not have a direct equivalent oftoJson()(which strips comments/trailing commas from raw tsconfig content). A migration would also need to replicate theTSConfckParseErrorerror handling pattern. It may be worth coordinating with Vite's migration effort in vitejs/vite#21577 to avoid duplicating work or introducing inconsistencies.Full Triage Report
Issue Summary
The
tsconfckpackage (used by Astro to find and parse tsconfig/jsconfig files) is being discontinued by its author. The immediate symptom is an unmet peer dependency warning when installing Astro with TypeScript 6.x, sincetsconfck@3.1.6requirestypescript@^5.0.0.Dependency Analysis
packages/astro/package.json(line 166):"tsconfck": "^3.1.6"scripts/package.json(line 15):"tsconfck": "^3.1.6"Usage Locations
packages/astro/src/core/config/tsconfig.ts— Primary consumerfind()(line 74): Locates tsconfig.json/jsconfig.json from a directoryparse()(line 117): Parses and resolves theextendschaintoJson()(lines 92, 106): Strips comments/trailing commas from raw config contentTSConfckParseError(line 125): Error handling for invalid configsTSConfckParseOptions,TSConfckParseResultscripts/smoke/check.js(line 7, 76): UsestoJson()for smoke testspackages/astro/test/units/config/config-tsconfig.test.ts(line 6, 52): UsestoJson()in unit testsMigration Options
get-tsconfig— Recommended by tsconfck author. ProvidesgetTsconfig()andparseTsconfig(). Would need a custom solution fortoJson()functionality.Branch Investigation
The
flue/fix-16385branch contains only lockfile changes from investigation (TypeScript 5.9.3 → 6.0.2 version resolution updates). No code changes were made.This report was made by an LLM. The analysis may be wrong, and the potential fix might not work, but is intended as a starting point for exploring the issue.
Refresh TypeScript lockfile (#1132)