Skip to content

Conversation

@weareoutman
Copy link
Member

@weareoutman weareoutman commented Nov 10, 2025

依赖检查

组件之间的依赖声明,是微服务组件架构下的重要信息,请确保其正确性。

请勾选以下两组选项其中之一:

  • 本次 MR 没有使用上游组件(例如框架、后台组件等)的较新版本提供的特性。

或者:

  • 本次 MR 使用了上游组件(例如框架、后台组件等)的较新版本提供的特性。
  • 在对应的文件中更新了该上游组件的依赖版本(或确认了当前声明的依赖版本已包含本次 MR 使用的新特性)。

提交信息检查

Git 提交信息将决定包的版本发布及自动生成的 CHANGELOG,请检查工作内容与提交信息是否相符,并在以下每组选项中都依次确认。

破坏性变更是针对于下游使用者而言,可以通过本次改动对下游使用者的影响来识别变更类型:

  • 下游使用者不做任何改动,仍可以正常工作时,那么它属于普通变更。
  • 反之,下游使用者不做改动就无法正常工作时,那么它属于破坏性变更。

例如,构件修改了一个属性名,小产品 Storyboard 中需要使用新属性名才能工作,那么它就是破坏性变更。
又例如,构件还没有任何下游使用者,那么它的任何变更都是普通变更。

破坏性变更:

  • ⚠️ 本次 MR 包含破坏性变更的提交,请继续确认以下所有选项:
  • 没有更好的兼容方案,必须做破坏性变更。
  • 使用了 feat 作为提交类型。
  • 标注了 BREAKING CHANGE: 你的变更说明
  • 同时更新了本仓库中所有下游使用者的调用。
  • 同时更新了本仓库中所有下游使用者对该子包的依赖为即将发布的 major 版本。
  • 同时为其它仓库的 Migrating 做好了准备,例如文档或批量改动的方法。
  • 手动验证过破坏性变更在 Migrate 后可以正常工作。
  • 破坏性变更所在的提交没有意外携带其它子包的改动。

新特性:

  • 本次 MR 包含新特性的提交,且该提交不带有破坏性变更,并使用了 feat 作为提交类型。
  • 给新特性添加了单元测试。
  • 手动验证过新特性可以正常工作。

问题修复:

  • 本次 MR 包含问题修复的提交,且该提交不带有新特性或破坏性变更,并使用了 fix 作为提交类型。
  • 给问题修复添加了单元测试。
  • 手动验证过问题修复得到解决。

杂项工作:

即所有对下游使用者无任何影响、且没有必要显示在 CHANGELOG 中的改动,例如修改注释、测试用例、开发文档等:

  • 本次 MR 包含杂项工作的提交,且该提交不带有问题修复、新特性或破坏性变更,并使用了 chore, docs, test 等作为提交类型。

Summary by CodeRabbit

发布说明

  • 优化改进
    • 优化了类型声明文件的生成流程,简化了构建过程。
    • 移除了类型构建步骤中的多余操作,提高了构建效率。

@cypress
Copy link

cypress bot commented Nov 10, 2025

next-core    Run #11799

Run Properties:  status check passed Passed #11799  •  git commit 7ca2d2a57d ℹ️: Merge 60fe5b7719eb494802b12fc1f6d50fe84c48bfcd into b82dcf1b907a7238cb888454a9e8...
Project next-core
Branch Review steve/v3-fix-jsx
Run status status check passed Passed #11799
Run duration 00m 26s
Commit git commit 7ca2d2a57d ℹ️: Merge 60fe5b7719eb494802b12fc1f6d50fe84c48bfcd into b82dcf1b907a7238cb888454a9e8...
Committer Shenwei Wang
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 17
View all changes introduced in this branch ↗︎

Copy link

Copilot AI left a comment

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 renames the JSX declaration file from jsx.d.ts to jsx.ts and updates references throughout the codebase. The change allows TypeScript to emit declarations directly without requiring a post-processing step.

  • Changed template file extension from .d.ts.hbs to .ts.hbs with an ESLint disable comment
  • Removed the copy-jsx-d-ts command from the build pipeline
  • Updated file path references and error messages in plopfile.js

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/yo/src/templates/bricks/src/jsx.ts.hbs Renamed from .d.ts.hbs to .ts.hbs and added ESLint disable comment for namespace usage
packages/yo/src/templates/bricks/package.json.hbs Removed copy-jsx-d-ts post-processing command from build:types script
packages/yo/src/plopfile.js Updated file path references from jsx.d.ts to jsx.ts and corrected error messages
Comments suppressed due to low confidence (3)

packages/yo/src/templates/bricks/package.json.hbs:14

  • The types field still references 'jsx.d.ts' but the source file has been renamed to 'jsx.ts'. Since TypeScript will emit 'jsx.d.ts' to dist-types, this should remain as is. However, given that the source is now a .ts file, verify that the TypeScript compiler generates the expected jsx.d.ts output file in the dist-types directory.
  "types": "dist-types/jsx.d.ts",

packages/yo/src/templates/bricks/package.json.hbs:19

  • The exports field still references 'jsx.d.ts' but the source file has been renamed to 'jsx.ts'. Since TypeScript will emit 'jsx.d.ts' to dist-types, this should remain as is. However, given that the source is now a .ts file, verify that the TypeScript compiler generates the expected jsx.d.ts output file in the dist-types directory.
    ".": "./dist-types/jsx.d.ts",

packages/yo/src/plopfile.js:317

  • The function name 'updateJsxDts' is now misleading since it updates 'jsx.ts' files rather than 'jsx.d.ts' files. Consider renaming to 'updateJsxTs' or 'updateJsx' for clarity.
          async function updateJsxDts(answers) {

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai
Copy link

coderabbitai bot commented Nov 10, 2025

Caution

Review failed

The pull request is closed.

概览

将生成的类型声明文件从 jsx.d.ts 重命名为 jsx.ts,更新相应的模板文件路径和错误消息文本,并在构建脚本中移除 copy-jsx-d-ts 命令。

变更

变更内容 说明
JSX 类型声明文件重命名
packages/yo/src/plopfile.js
在 bricks 工作流中,将生成的类型声明文件从 jsx.d.ts 重命名为 jsx.ts;更新模板源文件路径从 templates/bricks/src/jsx.d.ts.hbs 改为 templates/bricks/src/jsx.ts.hbs;调整错误提示文本相应改为 jsx.ts 引用
构建脚本优化
packages/yo/src/templates/bricks/package.json.hbs
移除 build:types 脚本中的 copy-jsx-d-ts 命令,仅保留 tsc 编译选项;简化类型生成构建流程
ESLint 配置补充
packages/yo/src/templates/bricks/src/jsx.ts.hbs
添加 ESLint 指令注释以禁用 no-namespace 规则,用于 JSX 命名空间全局增强声明

代码审查工作量评估

🎯 2 (简单) | ⏱️ ~12 分钟

  • 所有变更为相关性强的一致性修改,主要涉及文件重命名和脚本优化
  • plopfile.js 中的路径和文本更新为直接替换,无复杂逻辑变动
  • package.json.hbs 中移除构建命令步骤为配置简化,影响范围明确
  • jsx.ts.hbs 中仅添加 lint 注释,无功能性改动
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch steve/v3-fix-jsx

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between b82dcf1 and 60fe5b7.

📒 Files selected for processing (3)
  • packages/yo/src/plopfile.js (2 hunks)
  • packages/yo/src/templates/bricks/package.json.hbs (1 hunks)
  • packages/yo/src/templates/bricks/src/jsx.ts.hbs (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@weareoutman weareoutman merged commit e360fae into v3 Nov 10, 2025
14 of 15 checks passed
@weareoutman weareoutman deleted the steve/v3-fix-jsx branch November 10, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants