Skip to content

Commit b4b25f6

Browse files
renovate[bot]nickfloydwolfy1339
authored
chore(deps): update dependency @octokit/tsconfig to v2 (#568)
Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com> Co-authored-by: wolfy1339 <4595477+wolfy1339@users.noreply.github.com>
1 parent 69497a2 commit b4b25f6

File tree

5 files changed

+31
-12
lines changed

5 files changed

+31
-12
lines changed

package-lock.json

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

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"devDependencies": {
3636
"@octokit/auth": "^3.0.1",
37-
"@octokit/tsconfig": "^1.0.2",
37+
"@octokit/tsconfig": "^2.0.0",
3838
"@types/fetch-mock": "^7.3.1",
3939
"@types/jest": "^29.0.0",
4040
"@types/lolex": "^5.1.0",
@@ -53,7 +53,14 @@
5353
"typescript": "^5.0.0"
5454
},
5555
"jest": {
56-
"preset": "ts-jest",
56+
"transform": {
57+
"^.+\\.(ts|tsx)$": [
58+
"ts-jest",
59+
{
60+
"tsconfig": "test/tsconfig.test.json"
61+
}
62+
]
63+
},
5764
"coverageThreshold": {
5865
"global": {
5966
"statements": 100,

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { getUserAgent } from "universal-user-agent";
2-
import { Collection, HookCollection } from "before-after-hook";
2+
import type { HookCollection } from "before-after-hook";
3+
import { Collection } from "before-after-hook";
34
import { request } from "@octokit/request";
45
import { graphql, withCustomRequest } from "@octokit/graphql";
56
import { createTokenAuth } from "@octokit/auth-token";
67

7-
import {
8+
import type {
89
Constructor,
910
Hooks,
1011
OctokitOptions,

test/auth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
createActionAuth,
66
createOAuthAppAuth,
77
} from "@octokit/auth";
8-
import lolex, { Clock } from "lolex";
8+
import lolex, { type Clock } from "lolex";
99

1010
import { Octokit } from "../src";
1111

test/tsconfig.test.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"emitDeclarationOnly": false,
5+
"noEmit": true,
6+
"verbatimModuleSyntax": false
7+
},
8+
"include": [
9+
"src/**/*"
10+
]
11+
}

0 commit comments

Comments
 (0)