mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-05 21:50:46 +08:00
### What this PR does Before this PR: `pnpm packages:build` fails on `extension-table-plus` because tsdown auto-detects the root `tsconfig.json` which contains `references`, causing `rolldown-plugin-dts` to error out. After this PR: A local `tsconfig.json` is added to the `extension-table-plus` package, consistent with other packages (`aiCore`, `ai-sdk-provider`). `pnpm packages:build` completes successfully. Fixes the remaining issue from #13817 ### Why we need it and why it was done in this way The previous fix (#13817) removed the reference to a non-existent `tsconfig.build.json`, but without a local tsconfig, tsdown falls back to the root `tsconfig.json` which has `references` — incompatible with `rolldown-plugin-dts` for dts generation. The following tradeoffs were made: None. The following alternatives were considered: - Using `dts: { build: true }` in tsdown config, but adding a local tsconfig is more consistent with other packages in the monorepo. ### Breaking changes None. ### Special notes for your reviewer Verified with `pnpm packages:build` — all three packages build successfully. ### Checklist - [x] PR: The PR description is expressive enough and will help future contributors - [x] Code: [Write code that humans can understand](https://en.wikiquote.org/wiki/Martin_Fowler#code-for-humans) and [Keep it simple](https://en.wikipedia.org/wiki/KISS_principle) - [x] Refactor: You have [left the code cleaner than you found it (Boy Scout Rule)](https://learning.oreilly.com/library/view/97-things-every/9780596809515/ch08.html) - [x] Upgrade: Impact of this change on upgrade flows was considered and addressed if required - [ ] Documentation: A [user-guide update](https://docs.cherry-ai.com) was considered and is present (link) or not required. Check this only when the PR introduces or changes a user-facing feature or behavior. - [x] Self-review: I have reviewed my own code (e.g., via [`/gh-pr-review`](/.claude/skills/gh-pr-review/SKILL.md), `gh pr diff`, or GitHub UI) before requesting review from others ### Release note ```release-note NONE ``` --------- Signed-off-by: icarus <eurfelux@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
474 B
JSON
20 lines
474 B
JSON
{
|
|
"compilerOptions": {
|
|
"allowSyntheticDefaultImports": true,
|
|
"declaration": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"noEmitOnError": false,
|
|
"outDir": "./dist",
|
|
"resolveJsonModule": true,
|
|
"rootDir": "./src",
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"target": "ES2020"
|
|
},
|
|
"exclude": ["node_modules", "dist"],
|
|
"include": ["src/**/*"]
|
|
}
|