Skip to content

Conversation

@elrrrrrrr
Copy link
Contributor

@elrrrrrrr elrrrrrrr commented Jan 27, 2026

fix https://github.com/utooland/utoo/actions/runs/21403066957/job/61619257886

Installing dependencies for ant-design...
WARN Extract failed: @rc-component/[email protected]: Failed to create: C:\Users\runneradmin.cache/nm@rc-component/dialog\1.8.1\package/dist/~demos/:id/index.html

windows 下 ~demos/:id 路径非法,目前 package.json 配置为

  "main": "./lib/index",
  "module": "./es/index",

dist 目录仅用于文档部署,不需要发布至 npm

Summary by CodeRabbit

更新内容

  • 杂项更新
    • 优化包发布配置,调整已发布文件集合。

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Jan 27, 2026

@elrrrrrrr is attempting to deploy a commit to the React Component Team on Vercel.

A member of the Team first needs to authorize it.

@gemini-code-assist
Copy link

Summary of Changes

Hello @elrrrrrrr, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求旨在解决一个在 Windows 环境下安装依赖时出现的警告。通过修改 package.json 文件,将 dist 目录从发布文件列表中移除,从而避免了因 dist 目录中包含非法路径而导致的问题。这确保了包的正确发布,并消除了不必要的构建警告。

Highlights

  • 修复 Windows 路径非法警告: 移除了 package.jsonfiles 字段的 dist 目录,以解决在 Windows 环境下由于 ~demos/:id 路径非法导致的安装依赖警告。

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link

coderabbitai bot commented Jan 27, 2026

Walkthrough

从package.json的"files"数组中删除了"dist"条目,现在仅发布"assets/*.css"文件。未修改脚本或依赖配置。

Changes

内聚体 / 文件 变更摘要
包配置
package.json
从"files"数组移除"dist"条目,修改发布文件集合为仅包含"assets/*.css"

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 一只兔子跳过来,
整理着那些发布的东西,
dist 再见,assets CSS 万岁!
包裹变轻了,更加整洁,
简单的改变,大大的满意! 🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题清晰准确地概括了主要改动:从package.json的files数组中删除dist目录。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request addresses a build failure on Windows by removing the dist directory from the files array in package.json. The dist directory, used for documentation deployment, contains file paths that are invalid on Windows. Since this directory is not required for the npm package functionality, excluding it is the correct approach to resolve the installation issue. The change is simple, targeted, and effectively fixes the bug.

@codecov
Copy link

codecov bot commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.42%. Comparing base (7ef82bc) to head (c829e2e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #551   +/-   ##
=======================================
  Coverage   98.42%   98.42%           
=======================================
  Files           8        8           
  Lines         191      191           
  Branches       68       68           
=======================================
  Hits          188      188           
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@afc163 afc163 merged commit 970ab51 into react-component:master Jan 28, 2026
9 of 10 checks passed
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