From 06aad80165d09a8863ab8103149a8ff518b10641 Mon Sep 17 00:00:00 2001 From: lutangar Date: Tue, 2 Nov 2021 19:11:20 +0100 Subject: chore(refactor): remove shared folder dependencies to the server Many files from the `shared` folder were importing files from the `server` folder. When attempting to use Typescript project references to describe dependencies, it highlighted a circular dependency beetween `shared` <-> `server`. The Typescript project forbid such usages. Using project references greatly improve performance by rebuilding only the updated project and not all source files. > see https://www.typescriptlang.org/docs/handbook/project-references.html --- tsconfig.base.json | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tsconfig.base.json (limited to 'tsconfig.base.json') diff --git a/tsconfig.base.json b/tsconfig.base.json new file mode 100644 index 000000000..ef86b9797 --- /dev/null +++ b/tsconfig.base.json @@ -0,0 +1,35 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "noImplicitAny": false, + "sourceMap": false, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "importHelpers": true, + "removeComments": true, + "strictBindCallApply": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "lib": [ + "es2015", + "es2016", + "es2017", + "es2018", + "es2019" + ], + "typeRoots": [ + "node_modules/@types", + ], + "baseUrl": "./", + "outDir": "./dist/", + "paths": { + "@server/*": [ "server/*" ], + "@shared/*": [ "shared/*" ] + }, + "resolveJsonModule": true, + "strict": false, + "skipLibCheck": true, + "composite": true + } +} -- cgit v1.2.3