-
Notifications
You must be signed in to change notification settings - Fork 2
/
.ncurc.js
46 lines (42 loc) · 1.08 KB
/
.ncurc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Pinned:
- styled-components
- Conflict with GDS
- @typescript-eslint/eslint-plugin
- Another package does not yet support the latest version
- @typescript-eslint/parser
- Another package does not yet support the latest version
- date-fns
- Date-fns-tz does not yet support the latest version
Skipped:
- next
- 13.4.13 causes failures with fetch
*/
const pinned = [
"styled-components",
"eslint",
"@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser",
"date-fns"
]
const ignored = []
const skipped = [{ package: "next", version: "13.4.13" }]
module.exports = {
target: (pkg) => {
if (pinned.some((pin) => pin === pkg)) {
const res = "minor"
console.log(` ${pkg} is pinned to ${res} upgrades only (.ncurc.js)`)
return res
}
return "latest"
},
filterResults: (pkg, { upgradedVersion }) => {
if (ignored.some((ignore) => ignore.pkg === pkg)) {
return false
}
if (skipped.some((skip) => skip.pkg === pkg && skip.version === upgradedVersion)) {
return false
}
return true
}
}