Files
ant-design/.ncurc.js
Amumu f6797c4964 chore: upgrade deps improve for v5 (#52773)
* chore: upgrade deps improve for v5

* Revert "chore: upgrade deps improve for v5"

This reverts commit 057365e222.

* config: deps default follows semver

---------

Co-authored-by: 𝑾𝒖𝒙𝒉 <wxh1220@gmail.com>
2025-02-13 11:29:06 +08:00

23 lines
802 B
JavaScript

// doc: https://github.com/raineorshine/npm-check-updates/tree/v16.14.6#readme
const path = require('path');
const rcOrg = ['@rc-component/', 'rc-'];
const check = ['@ant-design/', ...rcOrg];
// rules: https://github.com/ant-design/ant-design/pull/45593#issuecomment-1784891887
module.exports = {
packageFile: path.resolve(__dirname, './package.json'),
upgrade: false, // use `npx npm-check-updates -u` to upgrade
packageManager: 'npm',
dep: ['prod'], // check only prod dependencies
// https://github.com/raineorshine/npm-check-updates#filter
filter: (name) => {
if (name === '@ant-design/cssinjs') {
return false;
}
return check.some((prefix) => name.startsWith(prefix));
},
// https://github.com/raineorshine/npm-check-updates#target
target: () => `semver`,
};