From 9b0b9be849e842b94dc6d248be3a49776b231b86 Mon Sep 17 00:00:00 2001 From: Yang Jun Date: Sat, 6 Jun 2026 23:55:02 +0800 Subject: [PATCH] fix: restore tsconfig settings and changelog build Re-add suppressImplicitAnyIndexErrors and downlevelIteration removed in a75033e2c, which broke the rollup TypeScript build on CI. Drop zh-cn changelog output now that translations were removed. Co-authored-by: Cursor --- bin/build-changelog.js | 2 -- tsconfig.json | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/build-changelog.js b/bin/build-changelog.js index 5c6b6c0ac..cfdfed37a 100644 --- a/bin/build-changelog.js +++ b/bin/build-changelog.js @@ -18,7 +18,5 @@ content = content .replace(/\{\{/g, '{% raw %}{{{% endraw %}') const enFrontmatter = '---\ntitle: Changelog\nauto: true\n---\n\n' -const zhFrontmatter = '---\ntitle: 更新日志\nauto: true\n---\n\n' fs.writeFileSync(path.join(root, 'docs/source/tutorials/changelog.md'), enFrontmatter + content) -fs.writeFileSync(path.join(root, 'docs/source/zh-cn/tutorials/changelog.md'), zhFrontmatter + content) diff --git a/tsconfig.json b/tsconfig.json index 0646fbcfe..258f536b4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,9 @@ "skipLibCheck": true, "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "strict": true + "downlevelIteration": true, + "strict": true, + "suppressImplicitAnyIndexErrors": true }, "all": true, "exclude": [ "node_modules", "dist", "demo", "test" ]