Skip to content

Commit 391d61e

Browse files
authored
fix(build): bump tsconfig major version (#85)
Bump tsconfig
1 parent ca7ef95 commit 391d61e

File tree

5 files changed

+27
-10
lines changed

5 files changed

+27
-10
lines changed

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"devDependencies": {
3131
"@octokit/core": "^4.0.0",
3232
"@octokit/plugin-rest-endpoint-methods": "^7.0.0",
33-
"@octokit/tsconfig": "^1.0.2",
33+
"@octokit/tsconfig": "^2.0.0",
3434
"@types/fetch-mock": "^7.3.1",
3535
"@types/jest": "^29.0.0",
3636
"@types/node": "^18.0.0",
@@ -46,6 +46,14 @@
4646
},
4747
"jest": {
4848
"preset": "ts-jest",
49+
"transform": {
50+
"^.+\\.(ts|tsx)$": [
51+
"ts-jest",
52+
{
53+
"tsconfig": "test/tsconfig.test.json"
54+
}
55+
]
56+
},
4957
"coveragePathIgnorePatterns": [
5058
"./test/testHelpers"
5159
],

src/errors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CursorValue, PageInfoContext } from "./page-info";
1+
import type { CursorValue, PageInfoContext } from "./page-info";
22

33
// Todo: Add link to explanation
44
const generateMessage = (path: string[], cursorValue: CursorValue): string =>

src/extract-page-info.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PageInfoContext } from "./page-info";
1+
import type { PageInfoContext } from "./page-info";
22
import { findPaginatedResourcePath, get } from "./object-helpers";
33

44
const extractPageInfos = (responseData: any): PageInfoContext => {

test/tsconfig.test.json

+9
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+
}

0 commit comments

Comments
 (0)