Skip to content

Commit

Permalink
fix(build): bump tsconfig major version (#85)
Browse files Browse the repository at this point in the history
Bump tsconfig
  • Loading branch information
kfcampbell authored Jun 7, 2023
1 parent ca7ef95 commit 391d61e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 10 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@octokit/core": "^4.0.0",
"@octokit/plugin-rest-endpoint-methods": "^7.0.0",
"@octokit/tsconfig": "^1.0.2",
"@octokit/tsconfig": "^2.0.0",
"@types/fetch-mock": "^7.3.1",
"@types/jest": "^29.0.0",
"@types/node": "^18.0.0",
Expand All @@ -46,6 +46,14 @@
},
"jest": {
"preset": "ts-jest",
"transform": {
"^.+\\.(ts|tsx)$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.test.json"
}
]
},
"coveragePathIgnorePatterns": [
"./test/testHelpers"
],
Expand Down
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CursorValue, PageInfoContext } from "./page-info";
import type { CursorValue, PageInfoContext } from "./page-info";

// Todo: Add link to explanation
const generateMessage = (path: string[], cursorValue: CursorValue): string =>
Expand Down
2 changes: 1 addition & 1 deletion src/extract-page-info.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PageInfoContext } from "./page-info";
import type { PageInfoContext } from "./page-info";
import { findPaginatedResourcePath, get } from "./object-helpers";

const extractPageInfos = (responseData: any): PageInfoContext => {
Expand Down
9 changes: 9 additions & 0 deletions test/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"emitDeclarationOnly": false,
"noEmit": true,
"verbatimModuleSyntax": false
},
"include": ["src/**/*"]
}

0 comments on commit 391d61e

Please sign in to comment.