From 68e7ff9274fec37acc1dac7a4d08ad698bbfb045 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 13 Jun 2023 18:26:52 -0400 Subject: [PATCH] chore(deps): update dependency @octokit/tsconfig to v2 (#340) --- package-lock.json | 14 +++++++------- package.json | 11 +++++++++-- test/request-error.test.ts | 2 +- test/tsconfig.test.json | 9 +++++++++ tsconfig.json | 4 +++- 5 files changed, 29 insertions(+), 11 deletions(-) create mode 100644 test/tsconfig.test.json diff --git a/package-lock.json b/package-lock.json index 08549c6..84fef26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "once": "^1.4.0" }, "devDependencies": { - "@octokit/tsconfig": "^1.0.2", + "@octokit/tsconfig": "^2.0.0", "@types/jest": "^29.0.0", "@types/node": "^18.0.0", "@types/once": "^1.4.0", @@ -1417,9 +1417,9 @@ "integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==" }, "node_modules/@octokit/tsconfig": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-1.0.2.tgz", - "integrity": "sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-2.0.0.tgz", + "integrity": "sha512-tWnrai3quGt8+gRN2edzo9fmraWekeryXPeXDomMw2oFSpu/lH3VSWGn/q4V+rwjTRMeeXk/ci623/01Zet4VQ==", "dev": true }, "node_modules/@octokit/types": { @@ -5580,9 +5580,9 @@ "integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==" }, "@octokit/tsconfig": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-1.0.2.tgz", - "integrity": "sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-2.0.0.tgz", + "integrity": "sha512-tWnrai3quGt8+gRN2edzo9fmraWekeryXPeXDomMw2oFSpu/lH3VSWGn/q4V+rwjTRMeeXk/ci623/01Zet4VQ==", "dev": true }, "@octokit/types": { diff --git a/package.json b/package.json index 9cf4d1e..8def508 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "once": "^1.4.0" }, "devDependencies": { - "@octokit/tsconfig": "^1.0.2", + "@octokit/tsconfig": "^2.0.0", "@types/jest": "^29.0.0", "@types/node": "^18.0.0", "@types/once": "^1.4.0", @@ -39,7 +39,14 @@ "typescript": "^5.0.0" }, "jest": { - "preset": "ts-jest", + "transform": { + "^.+\\.(ts|tsx)$": [ + "ts-jest", + { + "tsconfig": "test/tsconfig.test.json" + } + ] + }, "coverageThreshold": { "global": { "statements": 100, diff --git a/test/request-error.test.ts b/test/request-error.test.ts index e3f975c..124f02c 100644 --- a/test/request-error.test.ts +++ b/test/request-error.test.ts @@ -1,5 +1,5 @@ import { RequestError } from "../src"; -import { RequestErrorOptions } from "../src/types"; +import type { RequestErrorOptions } from "../src/types"; const mockOptions: RequestErrorOptions = { request: { diff --git a/test/tsconfig.test.json b/test/tsconfig.test.json new file mode 100644 index 0000000..b0961e1 --- /dev/null +++ b/test/tsconfig.test.json @@ -0,0 +1,9 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "emitDeclarationOnly": false, + "noEmit": true, + "verbatimModuleSyntax": false + }, + "include": ["src/**/*"] +} diff --git a/tsconfig.json b/tsconfig.json index c684ab8..8b07646 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,5 +7,7 @@ "emitDeclarationOnly": true, "sourceMap": true }, - "include": ["src/**/*"] + "include": [ + "src/**/*" + ] }