PeerTube/tsconfig.base.json
lutangar 06aad80165 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
2021-12-16 10:08:43 +01:00

36 lines
758 B
JSON

{
"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
}
}