From a5b26bcf662740832d80b74f778878ec796b003b Mon Sep 17 00:00:00 2001 From: tjq Date: Mon, 20 Oct 2025 13:02:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?ci:=20=E6=9B=B4=E6=96=B0=20Vercel=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=92=8C=20README=20=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新 vercel.json 配置文件以适配 Vercel 部署要求,并同步更新 README 中的 CI 徽章链接和在线演示地址 --- README.md | 10 +++------- vercel.json | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index edc1b62..116defe 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,10 @@ React Tooltip [npm-url]: http://npmjs.org/package/rc-tooltip [travis-image]: https://img.shields.io/travis/react-component/tooltip/master?style=flat-square [travis-url]: https://travis-ci.com/react-component/tooltip -[github-actions-image]: https://github.com/react-component/tooltip/workflows/CI/badge.svg -[github-actions-url]: https://github.com/react-component/tooltip/actions +[github-actions-image]: https://github.com/react-component/upload/actions/workflows/react-component-ci.yml/badge.svg +[github-actions-url]: https://github.com/react-component/tooltip/actions/workflows/react-component-ci.yml [codecov-image]: https://img.shields.io/codecov/c/github/react-component/tooltip/master.svg?style=flat-square [codecov-url]: https://app.codecov.io/gh/react-component/tooltip -[david-url]: https://david-dm.org/react-component/tooltip -[david-image]: https://david-dm.org/react-component/tooltip/status.svg?style=flat-square -[david-dev-url]: https://david-dm.org/react-component/tooltip?type=dev -[david-dev-image]: https://david-dm.org/react-component/tooltip/dev-status.svg?style=flat-square [download-image]: https://img.shields.io/npm/dm/rc-tooltip.svg?style=flat-square [download-url]: https://npmjs.org/package/rc-tooltip [bundlephobia-url]: https://bundlephobia.com/package/rc-tooltip @@ -66,7 +62,7 @@ ReactDOM.render( `npm start` and then go to -Online demo: +Online demo: https://tooltip-react-component.vercel.app/ ## API diff --git a/vercel.json b/vercel.json index cc12e40..120c2be 100644 --- a/vercel.json +++ b/vercel.json @@ -1,3 +1,14 @@ { - "framework": "umijs" -} + "$schema": "https://openapi.vercel.sh/vercel.json", + "version": 2, + "name": "@rc-component/tooltip", + "builds": [ + { + "src": "package.json", + "use": "@vercel/static-build", + "config": { + "distDir": "dist" + } + } + ] +} \ No newline at end of file From 072cf488f5c8180bf76b3eb7e683383340b6d8ea Mon Sep 17 00:00:00 2001 From: tjq Date: Mon, 20 Oct 2025 13:03:30 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3README=E4=B8=AD?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84GitHub=20Actions=E5=BE=BD=E7=AB=A0?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 116defe..c2890fb 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ React Tooltip [npm-url]: http://npmjs.org/package/rc-tooltip [travis-image]: https://img.shields.io/travis/react-component/tooltip/master?style=flat-square [travis-url]: https://travis-ci.com/react-component/tooltip -[github-actions-image]: https://github.com/react-component/upload/actions/workflows/react-component-ci.yml/badge.svg +[github-actions-image]: https://github.com/react-component/tooltip/actions/workflows/react-component-ci.yml/badge.svg [github-actions-url]: https://github.com/react-component/tooltip/actions/workflows/react-component-ci.yml [codecov-image]: https://img.shields.io/codecov/c/github/react-component/tooltip/master.svg?style=flat-square [codecov-url]: https://app.codecov.io/gh/react-component/tooltip From d28d29f392e883e7527971ed76673aa7242d044c Mon Sep 17 00:00:00 2001 From: tjq Date: Mon, 20 Oct 2025 13:08:55 +0800 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E4=BD=BF=E7=94=A8=E7=9A=84=20cross-env=20=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index e6efe8d..11ec24b 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,6 @@ "@types/react": "^19.1.4", "@types/react-dom": "^19.1.5", "@types/warning": "^3.0.0", - "cross-env": "^7.0.0", "dumi": "^2.2.13", "eslint": "^8.56.0", "eslint-plugin-unicorn": "^55.0.0",