-
Notifications
You must be signed in to change notification settings - Fork 1
/
.ncurc.js
32 lines (30 loc) · 838 Bytes
/
.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
// google packages are here because upgrading them
// currently breaks their compatibility
// affects: src/requested-changes-download/sheetsClient.ts
const pinned = [
"google-auth-library",
"eslint",
"@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser"
]
const ignored = ["googleapis", "puppeteer"]
const skipped = []
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
}
}