-
Notifications
You must be signed in to change notification settings - Fork 8
/
.ncurc.cjs
22 lines (22 loc) · 1.04 KB
/
.ncurc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
target: (dependencyName, [{ semver, version, operator, major, minor, patch, release, build }]) => {
if (dependencyName === "ava") return "patch"; // Trying to support Node 12.
if (dependencyName === "@ava/typescript") return "minor"; // Trying to support Node 12.
if (dependencyName === "execa") return "patch"; // Trying to support Node 12.
if (dependencyName === "command-line-usage") return "minor"; // Package got big.
if (dependencyName === "pretty-ms") return "minor"; // For old versions of node.
if (dependencyName === "eslint") return "minor";
if (dependencyName === "eslint-plugin-ava") return "minor";
if (dependencyName === "rimraf") return "minor";
if (dependencyName === "tinybench") return "patch";
if (dependencyName === "npm") return "minor";
if (major === "0") return "minor";
return "latest";
},
reject: (name, semver) => {
if (name === "tmp") {
return true;
}
return false;
},
};