diff --git a/package-lock.json b/package-lock.json index 1f42521b..30acc296 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "@octokit/auth-app": "^4.0.13", "@octokit/fixtures-server": "^7.0.0", "@octokit/request": "^6.2.5", - "@octokit/tsconfig": "^1.0.2", + "@octokit/tsconfig": "^2.0.0", "@types/jest": "^29.0.0", "@types/node": "^18.0.0", "esbuild": "^0.18.0", @@ -2029,6 +2029,11 @@ "@octokit/core": ">=4" } }, + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/tsconfig": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-1.0.2.tgz", + "integrity": "sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==" + }, "node_modules/@octokit/plugin-request-log": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", @@ -2113,9 +2118,10 @@ } }, "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": { "version": "9.3.1", @@ -2275,6 +2281,12 @@ "@octokit/core": ">=4" } }, + "node_modules/@semantic-release/github/node_modules/@octokit/tsconfig": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-1.0.2.tgz", + "integrity": "sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==", + "dev": true + }, "node_modules/@semantic-release/github/node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -15518,6 +15530,13 @@ "requires": { "@octokit/tsconfig": "^1.0.2", "@octokit/types": "^9.2.3" + }, + "dependencies": { + "@octokit/tsconfig": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-1.0.2.tgz", + "integrity": "sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==" + } } }, "@octokit/plugin-request-log": { @@ -15578,9 +15597,10 @@ } }, "@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": { "version": "9.3.1", @@ -15703,6 +15723,12 @@ "@octokit/types": "^9.3.1" } }, + "@octokit/tsconfig": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-1.0.2.tgz", + "integrity": "sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA==", + "dev": true + }, "debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", diff --git a/package.json b/package.json index 14d98206..30736a8a 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@octokit/auth-app": "^4.0.13", "@octokit/fixtures-server": "^7.0.0", "@octokit/request": "^6.2.5", - "@octokit/tsconfig": "^1.0.2", + "@octokit/tsconfig": "^2.0.0", "@types/jest": "^29.0.0", "@types/node": "^18.0.0", "esbuild": "^0.18.0", @@ -67,7 +67,14 @@ }, "license": "MIT", "jest": { - "preset": "ts-jest", + "transform": { + "^.+\\.(ts|tsx)$": [ + "ts-jest", + { + "tsconfig": "test/tsconfig.test.json" + } + ] + }, "testPathIgnorePatterns": [ "/docs/" ], diff --git a/test/tsconfig.test.json b/test/tsconfig.test.json new file mode 100644 index 00000000..b0961e18 --- /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 c684ab8d..8b076469 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,5 +7,7 @@ "emitDeclarationOnly": true, "sourceMap": true }, - "include": ["src/**/*"] + "include": [ + "src/**/*" + ] }