Skip to content

Commit

Permalink
Require Node.js 16
Browse files Browse the repository at this point in the history
Closes #14
  • Loading branch information
sindresorhus committed Aug 5, 2023
1 parent ca92fb6 commit fd66ff3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export interface Options {
export type Options = {
/**
GitHub [personal access token](https://github.com/settings/tokens/new).
*/
readonly token?: string;
}
};

/**
Get the GitHub username from an email address if the email can be found in any commits on GitHub.
Expand Down
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": ">=16"
},
"scripts": {
"test": "xo && ava && tsd"
Expand All @@ -32,11 +35,11 @@
"git"
],
"dependencies": {
"@octokit/rest": "^18.12.0"
"@octokit/rest": "^19.0.13"
},
"devDependencies": {
"ava": "^3.15.0",
"tsd": "^0.18.0",
"xo": "^0.45.0"
"ava": "^5.3.1",
"tsd": "^0.28.1",
"xo": "^0.55.0"
}
}

0 comments on commit fd66ff3

Please sign in to comment.