From da96fa454942407bf88247fb590c9453468b0aea Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Sat, 24 Feb 2024 15:45:46 -0500 Subject: [PATCH] build: add dom libs to tsconfig so it can build --- package-lock.json | 8 ++++---- package.json | 2 +- test/tsconfig.test.json | 2 +- tsconfig.json | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 36be088b7..5b3abc5e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@octokit/request": "^9.0.0", "@octokit/tsconfig": "^3.0.0", "@octokit/types": "^12.0.0", - "@types/fetch-mock": "^7.3.1", + "@types/fetch-mock": "^7.3.8", "@types/jest": "^29.0.0", "esbuild": "^0.20.0", "fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1", @@ -2545,9 +2545,9 @@ } }, "node_modules/@types/fetch-mock": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/@types/fetch-mock/-/fetch-mock-7.3.5.tgz", - "integrity": "sha512-sLecm9ohBdGIpYUP9rWk5/XIKY2xHMYTBJIcJuBBM8IJWnYoQ1DAj8F4OVjnfD0API1drlkWEV0LPNk+ACuhsg==", + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/@types/fetch-mock/-/fetch-mock-7.3.8.tgz", + "integrity": "sha512-ztsIGiyUvD0GaqPc9/hb8k20gnr6lupqA6SFtqt+8v2mtHhNO/Ebb6/b7N6af/7x0A7s1C8nxrEGzajMBqz8qA==", "dev": true }, "node_modules/@types/graceful-fs": { diff --git a/package.json b/package.json index c50b8e80c..913993bb2 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@octokit/request": "^9.0.0", "@octokit/tsconfig": "^3.0.0", "@octokit/types": "^12.0.0", - "@types/fetch-mock": "^7.3.1", + "@types/fetch-mock": "^7.3.8", "@types/jest": "^29.0.0", "esbuild": "^0.20.0", "fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1", diff --git a/test/tsconfig.test.json b/test/tsconfig.test.json index fe99a4e8e..169709c73 100644 --- a/test/tsconfig.test.json +++ b/test/tsconfig.test.json @@ -4,5 +4,5 @@ "emitDeclarationOnly": false, "noEmit": true }, - "include": ["src/**/*"] + "include": ["test/**/*"] } diff --git a/tsconfig.json b/tsconfig.json index c684ab8d2..60e928878 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "@octokit/tsconfig", "compilerOptions": { + "lib": ["es2023", "dom", "dom.iterable"], "esModuleInterop": true, "declaration": true, "outDir": "pkg/dist-types",