From 816912441c855a2bc17c06d697299f312d81a4a2 Mon Sep 17 00:00:00 2001 From: Amumu Date: Tue, 25 Nov 2025 10:11:42 +0800 Subject: [PATCH] Revert "chore: upgrade deps improve for v5 (#52773)" (#55871) --- .ncurc.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.ncurc.js b/.ncurc.js index 2589840530..5c17725d5d 100644 --- a/.ncurc.js +++ b/.ncurc.js @@ -18,5 +18,17 @@ module.exports = { return check.some((prefix) => name.startsWith(prefix)); }, // https://github.com/raineorshine/npm-check-updates#target - target: () => `semver`, + target: (name, semver) => { + const { operator } = semver[0] ?? {}; + + // rc-component + if (rcOrg.some((prefix) => name.startsWith(prefix))) { + // `^` always upgrade latest, otherwise follow semver. + if (operator === '^') { + return 'latest'; + } + } + + return 'semver'; + }, };