Skip to content

Commit d5b305a

Browse files
build(deps): update octokit monorepo to v10 (major) (#1113)
--------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wolfy1339 <[email protected]>
1 parent 85ed3f3 commit d5b305a

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

package-lock.json

Lines changed: 12 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444
]
4545
},
4646
"dependencies": {
47-
"@octokit/openapi-webhooks-types": "9.1.0",
47+
"@octokit/openapi-webhooks-types": "10.1.1",
4848
"@octokit/request-error": "^6.1.7",
4949
"@octokit/webhooks-methods": "^5.1.1"
5050
},
5151
"devDependencies": {
52-
"@octokit/openapi-webhooks": "9.1.0",
52+
"@octokit/openapi-webhooks": "10.1.1",
5353
"@octokit/tsconfig": "^4.0.0",
5454
"@types/node": "^22.0.0",
5555
"@vitest/coverage-v8": "^3.0.0",

scripts/generate-types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ import * as fs from "node:fs";
55
import type { OpenAPI3, OperationObject, PathItemObject } from "./types.js";
66
import { format } from "prettier";
77

8-
// @ts-expect-error - There is no type definition for this package, your IDE may complain that this directive is unused but it is not
9-
const schema = (await import("@octokit/openapi-webhooks")).default.schemas[
8+
const schema = (await import("@octokit/openapi-webhooks")).schemas[
109
"api.github.com"
11-
] as OpenAPI3;
10+
] as unknown as OpenAPI3;
1211

1312
const getEmitterEvents = (): string[] => {
1413
return Array.from(events).sort();

0 commit comments

Comments
 (0)