diff --git a/functions/package.json b/functions/package.json index 0cb896a..14ba822 100644 --- a/functions/package.json +++ b/functions/package.json @@ -20,6 +20,7 @@ "firebase-functions": "^4.6.0" }, "devDependencies": { + "@tsconfig/node21": "^21.0.1", "@types/jest": "^29.5.12", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", diff --git a/functions/tsconfig.json b/functions/tsconfig.json index b8788ef..6c48eb3 100644 --- a/functions/tsconfig.json +++ b/functions/tsconfig.json @@ -4,23 +4,16 @@ "allowJs": false, "baseUrl": "./", "declaration": true, - "esModuleInterop": true, - "lib": ["ES2023"], "listEmittedFiles": true, - "module": "node16", - "moduleResolution": "Node16", "noFallthroughCasesInSwitch": true, "noImplicitReturns": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "lib", "removeComments": false, - // https://github.com/stephenh/ts-proto/issues/891 - "skipLibCheck": true, "sourceMap": true, - "strict": true, - "target": "ES2022", "types": ["jest"] }, - "exclude": ["node_modules", "lib"] + "exclude": ["node_modules", "lib"], + "extends": "@tsconfig/node21/tsconfig.json" } diff --git a/functions/yarn.lock b/functions/yarn.lock index ee05669..ab34711 100644 --- a/functions/yarn.lock +++ b/functions/yarn.lock @@ -839,6 +839,11 @@ resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== +"@tsconfig/node21@^21.0.1": + version "21.0.1" + resolved "https://registry.yarnpkg.com/@tsconfig/node21/-/node21-21.0.1.tgz#a26f5ac11eb580bf6da68070f9c6eeccf9bba896" + integrity sha512-2Khg79N+z2Qkb9SjLzOi8cz2PSa/oUpHIeQm1YWzmWXkoFcPXFZSHgs+Z8iPCDjIoXFqMNYntiTXxfLYQMcRhw== + "@types/babel__core@^7.1.14": version "7.20.5" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017"