Skip to content

Commit 68e7ff9

Browse files
chore(deps): update dependency @octokit/tsconfig to v2 (#340)
1 parent 635a93a commit 68e7ff9

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
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
@@ -27,7 +27,7 @@
2727
"once": "^1.4.0"
2828
},
2929
"devDependencies": {
30-
"@octokit/tsconfig": "^1.0.2",
30+
"@octokit/tsconfig": "^2.0.0",
3131
"@types/jest": "^29.0.0",
3232
"@types/node": "^18.0.0",
3333
"@types/once": "^1.4.0",
@@ -39,7 +39,14 @@
3939
"typescript": "^5.0.0"
4040
},
4141
"jest": {
42-
"preset": "ts-jest",
42+
"transform": {
43+
"^.+\\.(ts|tsx)$": [
44+
"ts-jest",
45+
{
46+
"tsconfig": "test/tsconfig.test.json"
47+
}
48+
]
49+
},
4350
"coverageThreshold": {
4451
"global": {
4552
"statements": 100,

test/request-error.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { RequestError } from "../src";
2-
import { RequestErrorOptions } from "../src/types";
2+
import type { RequestErrorOptions } from "../src/types";
33

44
const mockOptions: RequestErrorOptions = {
55
request: {

test/tsconfig.test.json

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

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@
77
"emitDeclarationOnly": true,
88
"sourceMap": true
99
},
10-
"include": ["src/**/*"]
10+
"include": [
11+
"src/**/*"
12+
]
1113
}

0 commit comments

Comments
 (0)