From aa38ebf8baca937dbcc4052183be21833fe92a86 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 21 Nov 2023 12:09:33 +0000 Subject: [PATCH] Update typeRoots in tsconfig.json files --- Accounts/tsconfig.json | 2 +- AdminDashboard/tsconfig.json | 2 +- Dashboard/tsconfig.json | 2 +- DashboardAPI/tsconfig.json | 2 +- File/tsconfig.json | 2 +- Identity/tsconfig.json | 2 +- Integration/tsconfig.json | 2 +- LinkShortener/tsconfig.json | 2 +- Notification/tsconfig.json | 2 +- Probe/Tests/Utils/PingMonitor.test.ts | 1 - Probe/tsconfig.json | 2 +- Realtime/tsconfig.json | 2 +- StatusPage/tsconfig.json | 2 +- Workers/tsconfig.json | 2 +- Workflow/tsconfig.json | 2 +- tsconfig.json | 2 +- 16 files changed, 15 insertions(+), 16 deletions(-) diff --git a/Accounts/tsconfig.json b/Accounts/tsconfig.json index 03388fa023..a9d6106e0f 100644 --- a/Accounts/tsconfig.json +++ b/Accounts/tsconfig.json @@ -34,7 +34,7 @@ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ - "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */ + "typeRoots": ["./node_modules/@types"], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": [ "node" ], /* Specify type package names to be included without being referenced in a source file. */ diff --git a/AdminDashboard/tsconfig.json b/AdminDashboard/tsconfig.json index 49eec8656b..a972e42c66 100644 --- a/AdminDashboard/tsconfig.json +++ b/AdminDashboard/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/Dashboard/tsconfig.json b/Dashboard/tsconfig.json index 49eec8656b..a972e42c66 100644 --- a/Dashboard/tsconfig.json +++ b/Dashboard/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/DashboardAPI/tsconfig.json b/DashboardAPI/tsconfig.json index 725652830a..7f30ba7057 100644 --- a/DashboardAPI/tsconfig.json +++ b/DashboardAPI/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/File/tsconfig.json b/File/tsconfig.json index 71fd80187e..f4fd46e33a 100644 --- a/File/tsconfig.json +++ b/File/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/Identity/tsconfig.json b/Identity/tsconfig.json index 71fd80187e..f4fd46e33a 100644 --- a/Identity/tsconfig.json +++ b/Identity/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/Integration/tsconfig.json b/Integration/tsconfig.json index 4d5e4d3b9b..c6cf2b84ed 100644 --- a/Integration/tsconfig.json +++ b/Integration/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/LinkShortener/tsconfig.json b/LinkShortener/tsconfig.json index 4d5e4d3b9b..c6cf2b84ed 100644 --- a/LinkShortener/tsconfig.json +++ b/LinkShortener/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/Notification/tsconfig.json b/Notification/tsconfig.json index 725652830a..7f30ba7057 100644 --- a/Notification/tsconfig.json +++ b/Notification/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/Probe/Tests/Utils/PingMonitor.test.ts b/Probe/Tests/Utils/PingMonitor.test.ts index 3f39edeff6..6d01db6049 100644 --- a/Probe/Tests/Utils/PingMonitor.test.ts +++ b/Probe/Tests/Utils/PingMonitor.test.ts @@ -4,7 +4,6 @@ import PositiveNumber from 'Common/Types/PositiveNumber'; import Ping, { PingResponse, } from '../../Utils/Monitors/MonitorTypes/PingMonitor'; -import '@types/jest'; describe('Ping', () => { jest.setTimeout(10000); diff --git a/Probe/tsconfig.json b/Probe/tsconfig.json index ab4f2d7c49..993e6483de 100644 --- a/Probe/tsconfig.json +++ b/Probe/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node", "jest"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/Realtime/tsconfig.json b/Realtime/tsconfig.json index 725652830a..7f30ba7057 100644 --- a/Realtime/tsconfig.json +++ b/Realtime/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/StatusPage/tsconfig.json b/StatusPage/tsconfig.json index 49eec8656b..a972e42c66 100644 --- a/StatusPage/tsconfig.json +++ b/StatusPage/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/Workers/tsconfig.json b/Workers/tsconfig.json index 725652830a..7f30ba7057 100644 --- a/Workers/tsconfig.json +++ b/Workers/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/Workflow/tsconfig.json b/Workflow/tsconfig.json index 4d5e4d3b9b..c6cf2b84ed 100644 --- a/Workflow/tsconfig.json +++ b/Workflow/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ diff --git a/tsconfig.json b/tsconfig.json index 619ba33651..59ad473934 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -38,7 +38,7 @@ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ "typeRoots": [ - + "./node_modules/@types" ], /* Specify multiple folders that act like `./node_modules/@types`. */ "types": ["node", "jest"], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */