Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 20, 2023
1 parent 8b689d7 commit 39e11f7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/org/members.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export async function members(ctx) {
owners.includes(human.github) || human.npm === npmTokenOwner
? 'owner'
: admins.includes(human.github)
? 'admin'
: 'member'
? 'admin'
: 'member'
}))

const response = await fetch(
Expand Down
23 changes: 17 additions & 6 deletions lib/util/find.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,29 @@ export function find(ctx, expression) {

function expand(role) {
switch (role) {
case 'contributor':
case 'contributor': {
return [role, 'member']
case 'merger':
}

case 'merger': {
return [role, 'maintainer', 'member']
case 'releaser':
}

case 'releaser': {
return [role, 'maintainer', 'member']
case 'maintainer':
}

case 'maintainer': {
return ['merger', 'releaser', role, 'member']
case 'member':
}

case 'member': {
return ['contributor', 'merger', 'releaser', 'maintainer', role]
default:
}

default: {
throw new Error('Unknown role `' + role + '`')
}
}
}

Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"index.js"
],
"dependencies": {
"@octokit/graphql": "^4.0.0",
"@octokit/graphql": "^7.0.0",
"chalk": "^5.0.0",
"dlv": "^1.0.0",
"js-yaml": "^4.0.0",
Expand All @@ -28,15 +28,15 @@
"trough": "^2.0.0"
},
"devDependencies": {
"prettier": "^2.0.0",
"prettier": "^3.0.0",
"remark-cli": "^10.0.0",
"remark-preset-wooorm": "^9.0.0",
"xo": "^0.50.0"
"xo": "^0.56.0"
},
"scripts": {
"start": "node .",
"crawl": "node script/crawl",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test": "npm run crawl && npm run format"
},
"prettier": {
Expand All @@ -52,9 +52,11 @@
"rules": {
"no-await-in-loop": "off",
"unicorn/no-reduce": "off",
"unicorn/prefer-at": "off",
"unicorn/prefer-number-properties": "off",
"unicorn/prefer-optional-catch-binding": "off",
"unicorn/prefer-set-has": "off",
"unicorn/prefer-string-replace-all": "off",
"unicorn/string-content": "off"
}
},
Expand Down

0 comments on commit 39e11f7

Please sign in to comment.