-
-
Notifications
You must be signed in to change notification settings - Fork 775
Avoid rc package deep imports #1071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,20 +42,22 @@ | |
| "tsc": "bunx tsc --noEmit" | ||
| }, | ||
| "dependencies": { | ||
| "@rc-component/util": "^1.3.0", | ||
| "@rc-component/util": "^1.11.1", | ||
| "clsx": "^2.1.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@rc-component/father-plugin": "^2.1.3", | ||
| "@rc-component/father-plugin": "^2.2.0", | ||
| "@rc-component/np": "^1.0.0", | ||
| "@rc-component/tooltip": "^1.2.1", | ||
| "@rc-component/trigger": "^3.5.2", | ||
| "@testing-library/jest-dom": "^6.1.5", | ||
| "@testing-library/react": "^12.1.3", | ||
| "@testing-library/react": "^16.0.0", | ||
| "@types/jest": "^29.5.1", | ||
| "@types/node": "^22.5.0", | ||
| "@types/react": "^18.2.42", | ||
| "@types/react-dom": "^18.0.11", | ||
| "@typescript-eslint/eslint-plugin": "^5.62.0", | ||
| "@typescript-eslint/parser": "^5.62.0", | ||
|
Comment on lines
+59
to
+60
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
python - <<'PY'
import json
with open('package.json','r',encoding='utf-8') as f:
pkg=json.load(f)
print("package.json engines.node =", pkg.get("engines",{}).get("node"))
for name in ["`@typescript-eslint/eslint-plugin`","`@typescript-eslint/parser`","eslint"]:
print(name, "=>", pkg.get("devDependencies",{}).get(name) or pkg.get("dependencies",{}).get(name))
PY
echo "---- published engines metadata ----"
npm view `@typescript-eslint/eslint-plugin`@5.62.0 engines --json
npm view `@typescript-eslint/parser`@5.62.0 engines --json
npm view eslint@8.54.0 engines --jsonRepository: react-component/slider Length of output: 383 同步提升 Node 引擎声明以匹配 typescript-eslint/eslint 的最低要求
建议修改 "engines": {
- "node": ">=8.x"
+ "node": ">=12.22.0"
}🤖 Prompt for AI Agents |
||
| "@umijs/fabric": "^4.0.1", | ||
| "cross-env": "^7.0.0", | ||
| "dumi": "^2.2.10", | ||
|
|
@@ -68,8 +70,8 @@ | |
| "glob": "^7.1.6", | ||
| "less": "^4.1.3", | ||
| "rc-test": "^7.0.15", | ||
| "react": "^16.0.0", | ||
| "react-dom": "^16.0.0", | ||
| "react": "^18.0.0", | ||
| "react-dom": "^18.0.0", | ||
| "regenerator-runtime": "^0.14.0", | ||
| "typescript": "^5.1.6" | ||
| }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.