mirror of
https://github.com/dependabot/fetch-metadata.git
synced 2026-03-13 18:17:13 -04:00
`src/main.ts` includes the import:
```javascript
import { RequestError } from '@octokit/request-error'
```
However, we weren't explicitly requiring this in `package.json`.
It was implicitly coming in via `@actions/github` import, but best
to be explicit about it.
Discovered via:
```shell
npm install -g npm-check
npm-check
```
Which reported the following error:
```
@octokit/request-error 😟 PKG ERR! Not in the package.json. Found in: /src/main.test.ts, /src/main.ts
```
Note: There is a _much_ newer version of `@octokit/request-error` available.
However, that threw some type errors due to breaking changes.
This `2.1.0` version was already pinned as a transitive dependency
in `package-lock.json`, so I went with that for now.
52 lines
1.3 KiB
JSON
52 lines
1.3 KiB
JSON
{
|
|
"name": "dependabot-pull-request-action",
|
|
"version": "2.3.0",
|
|
"description": "Parse Dependabot commit metadata to automate PR handling",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "ncc build src/main.ts",
|
|
"lint": "eslint . --ext .ts",
|
|
"test": "jest",
|
|
"dry-run": "ts-node src/dry-run.ts"
|
|
},
|
|
"keywords": [
|
|
"actions",
|
|
"dependabot",
|
|
"merge",
|
|
"approve"
|
|
],
|
|
"engines": {
|
|
"node": ">=20.5.0",
|
|
"npm": ">=10.0.0"
|
|
},
|
|
"author": "dependabot",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@actions/core": "^1.10.0",
|
|
"@actions/github": "^5.1.1",
|
|
"@octokit/request-error": "^2.1.0",
|
|
"pluralize": "^8.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^29.5.12",
|
|
"@types/node": "^20.11.20",
|
|
"@types/yargs": "^17.0.32",
|
|
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
|
"@typescript-eslint/parser": "^7.0.2",
|
|
"@vercel/ncc": "^0.38.3",
|
|
"dotenv": "^16.4.5",
|
|
"eslint": "^8.50.0",
|
|
"eslint-config-standard": "^17.1.0",
|
|
"eslint-plugin-import": "^2.29.1",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-promise": "^6.1.1",
|
|
"jest": "^29.7.0",
|
|
"nock": "^13.5.3",
|
|
"ts-jest": "^29.1.2",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.3.3",
|
|
"yaml": "^2.4.0",
|
|
"yargs": "^17.7.2"
|
|
}
|
|
}
|