From d116a82f8c87bded52d9e854802e02cb98c050af Mon Sep 17 00:00:00 2001 From: David Arranz Date: Sun, 8 Sep 2024 15:09:14 +0200 Subject: [PATCH] . --- server/tsconfig.json | 2 +- shared/tsconfig.json | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/server/tsconfig.json b/server/tsconfig.json index 22538f7..079377c 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -48,7 +48,7 @@ }, // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ - // "typeRoots": [] /* List of folders to include type definitions from. */, + "typeRoots": ["./node_modules/@types"] /* List of folders to include type definitions from. */, // "types": [], /* Type declaration files to be included in compilation. */ "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */, "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, diff --git a/shared/tsconfig.json b/shared/tsconfig.json index 9cf7f9c..1f03835 100644 --- a/shared/tsconfig.json +++ b/shared/tsconfig.json @@ -3,10 +3,7 @@ /* Basic Options */ "target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */, "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, - "lib": [ - "ES2022", - "dom" - ] /* Specify library files to be included in the compilation. */, + "lib": ["ES2022", "dom"] /* Specify library files to be included in the compilation. */, "allowJs": false /* Allow javascript files to be compiled. */, "pretty": true, @@ -51,7 +48,7 @@ }, // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ - // "typeRoots": [] /* List of folders to include type definitions from. */, + "typeRoots": ["./node_modules/@types"] /* List of folders to include type definitions from. */, // "types": [], /* Type declaration files to be included in compilation. */ "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */, "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, @@ -72,10 +69,5 @@ "resolveJsonModule": true /* Include modules imported with '.json' extension */, "suppressImplicitAnyIndexErrors": false }, - "exclude": [ - "src/**/__tests__/*", - "src/**/*.mock.*", - "src/**/*.test.*", - "node_modules" - ] + "exclude": ["src/**/__tests__/*", "src/**/*.mock.*", "src/**/*.test.*", "node_modules"] }